[PATCH] powermac: defer work in backlight key press

Michael Hanselmann linux-kernel at hansmi.ch
Sun Jul 9 00:35:30 EST 2006


On Mon, Jul 03, 2006 at 10:39:23PM -0300, Aristeu Sergio Rozanski Filho wrote:
> powermac: defer work in backlight key press

> pmac_backlight_key() is called under interrupt context, can't use mutexes or
> semaphores, so defer the backlight level for later, as it's not critical

Nack, needs spinlock around this part:

> +	pmac_backlight_key_queued = direction;
> +	schedule_work(&pmac_backlight_key_work);

I'll submit another patch with more fixes soon.

Greets,
Michael



More information about the Linuxppc-dev mailing list