[IA64] fix interrupt masking for pending works on kernel leave
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Fri, 9 May 2008 06:26:35 +0000 (15:26 +0900)
committerTony Luck <tony.luck@intel.com>
Wed, 14 May 2008 22:55:35 +0000 (15:55 -0700)
[Bug-fix for "[BUG?][2.6.25-mm1] sleeping during IRQ disabled"]

This patch does:
 - enable interrupts before calling schedule() as same as others, ex. x86
 - enable interrupts during ia64_do_signal() and ia64_sync_krbs()
 - do_notify_resume_user() is still called with interrupts disabled, since
   we can take short path of fsys_mode if-statement quickly.
 - pfm_handle_work() is also called with interrupts disabled, since
   it can deal interrupt mask within itself.
 - fix/add some comments/notes

Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

No differences found