Subject: Re: [PATCH 1/7] Implement arch disable/enable irq hooks.

From: Scott Wood <[email-masked]>
Date: Tue, 23 Oct 2007 16:34:26 -0500

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