xtensa: check thread flags atomically on return from user exception
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 26 Aug 2013 11:12:58 +0000 (15:12 +0400)
committerChris Zankel <chris@zankel.net>
Fri, 6 Sep 2013 16:46:35 +0000 (09:46 -0700)
Check pending signals and rescheduling thread flags with interrupts
disabled, and don't enable them if no flags are set. Call
trace_hardirqs_on after thread flags handling, so that rescheduling is
done and hardirqs tracking flag is updated in the correct task context.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>

No differences found