[PATCH 1/7] Implement arch disable/enable irq hooks.
Scott Wood
scottwood at freescale.com
Wed Oct 24 07:34:26 EST 2007
Josh Boyer wrote:
>> +#ifdef CONFIG_SUSPEND
>> +void generic_suspend_disable_irqs(void)
>> +{
>> + preempt_disable();
>> +
>> + /* Disable the decrementer, so that it doesn't interfere
>> + * with suspending.
>> + */
>> +
>> + set_dec(0x7fffffff);
>> + hard_irq_disable();
>> + set_dec(0x7fffffff);
>> +}
>> +
>> +void generic_suspend_enable_irqs(void)
>> +{
>> + wakeup_decrementer();
>> +
>> + local_irq_enable();
>> + preempt_enable();
>> +}
>
> Should these be static functions? Seems so...
I was asked to make them available to be called by non-generic
implementations.
-Scott
More information about the Linuxppc-dev
mailing list