]> git.baikalelectronics.ru Git - kernel.git/commit
hp_accel: do not call ACPI from invalid context
authorPavel Machek <pavel@suse.cz>
Thu, 15 Jan 2009 21:51:24 +0000 (13:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 00:39:41 +0000 (16:39 -0800)
commit76dbc334207da251aa64be878fdb8c85c0386d60
treeb89aa477a142e50fb45553b63fa51a20e67d6e89
parent063e8ea13ad530fa58bee18582827b8d58e50901
hp_accel: do not call ACPI from invalid context

The LED on HP notebooks is connected through ACPI.  That unfortunately
means that it needs to be delayed by using schedule_work() to avoid
calling the ACPI interpreter from an invalid context.

[akpm@linux-foundation.org: use flush_work() rather than sort-of reimplementing it]
Signed-off-by: Pavel Machek <pavel@suse.cz>
Cc: Éric Piel <eric.piel@tremplin-utc.net>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/hp_accel.c