diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-10-30 17:46:24 -0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-11-05 13:07:11 -0500 |
commit | fc589a3ce5f38db6239c147da4f9172a25575ecc (patch) | |
tree | 3732f557e21ef93787a0ebfcad4323ec00165dea /drivers/macintosh/windfarm_pm81.c | |
parent | b856f5b8c022b75bb0504a8c1ce16a5f1656e08b (diff) |
ACPI: thinkpad-acpi: allow for syscall restart in sysfs handlers
Map an mutex_lock_interruptible() error return into ERESTARTSYS, as the
only possible error from mutex_lock_interruptible is EINTR, and that will
only happen if signal_pending() causes the mutex lock attempt to abort.
This still allows signals to be delivered ASAP, which is much nicer than
just doing mutex_lock, and still shadows userspace from EINTR when
SA_RESTART is active.
Problem reported by Peter Jordan.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Peter Jordan <usernetwork@gmx.info>
Cc: Richard Neill <rn214@hermes.cam.ac.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/macintosh/windfarm_pm81.c')
0 files changed, 0 insertions, 0 deletions