]> git.baikalelectronics.ru Git - kernel.git/commit
signal: use current->state helpers
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 17 Feb 2015 21:45:41 +0000 (13:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:51 +0000 (14:34 -0800)
commitd9b6674a83afdda934136e3480f3471b50e60fcb
treee04e2f8d3fcf080c2ec6d6a1430f2045f5df869d
parentd00ddd643a978902ab15bdc62aac075e7716472b
signal: use current->state helpers

Call __set_current_state() instead of assigning the new state directly.
These interfaces also aid CONFIG_DEBUG_ATOMIC_SLEEP environments, keeping
track of who changed the state.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c