Linus Torvalds
bd0f9b356d
sched/headers: fix up header file dependency on <linux/sched/signal.h>
...
The scheduler header file split and cleanups ended up exposing a few
nasty header file dependencies, and in particular it showed how we in
<linux/wait.h> ended up depending on "signal_pending()", which now comes
from <linux/sched/signal.h>.
That's a very subtle and annoying dependency, which already caused a
semantic merge conflict (see commit e58bc92783 "Pull overlayfs updates
from Miklos Szeredi", which added that fixup in the merge commit).
It turns out that we can avoid this dependency _and_ improve code
generation by moving the guts of the fairly nasty helper #define
__wait_event_interruptible_locked() to out-of-line code. The code that
includes the signal_pending() check is all in the slow-path where we
actually go to sleep waiting for the event anyway, so using a helper
function is the right thing to do.
Using a helper function is also what we already did for the non-locked
versions, see the "__wait_event*()" macros and the "prepare_to_wait*()"
set of helper functions.
We might want to try to unify all these macro games, we have a _lot_ of
subtly different wait-event loops. But this is the minimal patch to fix
the annoying header dependency.
Acked-by: Ingo Molnar <mingo@kernel.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2017-03-08 10:36:03 -08:00
..
2014-08-06 18:01:23 -07:00
2017-02-24 19:04:57 +01:00
2017-02-23 08:46:04 -08:00
2017-01-31 11:31:49 -08:00
2017-02-22 18:22:53 -08:00
2017-02-27 19:59:21 -08:00
2017-03-01 09:50:58 -08:00
2017-02-23 11:27:49 -08:00
2017-02-27 18:43:46 -08:00
2016-12-14 10:49:33 -08:00
2017-02-27 19:59:21 -08:00
2017-03-03 01:45:41 +01:00
2017-02-23 15:57:04 -08:00
2017-02-27 18:43:46 -08:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:32:46 +01:00
2017-02-02 08:21:32 -07:00
2017-03-03 01:45:23 +01:00
2016-08-18 10:44:20 +02:00
2017-02-27 20:54:05 +02:00
2017-03-02 08:56:04 -07:00
2017-03-02 08:42:27 +01:00
2017-02-24 17:46:56 -08:00
2017-03-02 08:42:25 +01:00
2017-02-24 17:46:55 -08:00
2017-02-27 18:43:45 -08:00
2017-03-01 20:32:25 +01:00
2017-02-27 23:09:29 -08:00
2008-06-04 14:56:12 +01:00
2017-03-02 08:42:40 +01:00
2017-03-02 13:53:13 -08:00
2017-03-02 08:42:38 +01:00
2017-03-02 08:42:31 +01:00
2017-02-24 17:46:54 -08:00
2017-03-02 08:42:24 +01:00
2013-05-12 14:16:21 +02:00
2017-02-23 20:33:51 -08:00
2016-07-26 16:19:19 -07:00
2017-03-03 01:45:28 +01:00
2017-02-25 13:45:43 -08:00
2017-02-24 17:46:55 -08:00
2017-02-25 13:45:43 -08:00
2015-09-08 15:35:28 -07:00
2017-03-02 08:42:38 +01:00
2016-08-04 08:50:07 -04:00
2014-09-29 00:04:55 -04:00
2017-03-02 08:42:36 +01:00
2012-10-13 10:46:48 +01:00
2017-02-27 10:07:47 -08:00
2017-03-03 01:45:28 +01:00
2014-01-21 23:17:20 -08:00
2017-03-01 20:32:25 +01:00
2009-12-17 10:58:17 -05:00
2017-03-02 20:51:15 -05:00
2017-02-23 20:33:51 -08:00
2017-02-24 17:46:55 -08:00
2017-03-03 01:45:40 +01:00
2017-02-24 17:46:54 -08:00
2017-02-22 16:41:28 -08:00
2016-09-05 13:52:38 +02:00
2017-03-02 08:42:32 +01:00
2017-03-03 01:43:47 +01:00
2014-05-14 16:40:04 -07:00
2017-02-24 17:46:54 -08:00
2017-02-24 17:46:56 -08:00
2017-03-07 09:37:28 -08:00
2017-03-03 01:45:32 +01:00
2017-02-27 18:43:47 -08:00
2007-07-31 15:39:40 -07:00
2017-02-01 09:13:58 +01:00
2017-02-24 17:46:57 -08:00
2017-03-02 10:09:00 +11:00
2017-03-02 08:42:28 +01:00
2017-02-27 18:43:45 -08:00
2017-03-02 08:42:28 +01:00
2017-03-01 17:03:21 +01:00
2017-03-01 00:49:42 -08:00
2017-03-02 12:17:22 -08:00
2017-02-24 17:46:57 -08:00
2016-02-22 22:44:04 -05:00
2017-01-04 13:22:38 -07:00
2017-02-24 17:46:54 -08:00
2017-02-22 16:41:27 -08:00
2017-02-24 17:46:56 -08:00
2017-02-24 17:46:55 -08:00
2017-02-23 09:54:19 -08:00
2017-02-24 17:46:54 -08:00
2017-03-03 01:45:25 +01:00
2017-03-03 01:43:48 +01:00
2017-02-24 17:46:56 -08:00
2016-07-26 16:19:19 -07:00
2017-02-24 17:46:54 -08:00
2017-02-24 17:46:54 -08:00
2017-02-22 17:08:33 -08:00
2015-03-12 18:46:08 -07:00
2015-11-06 17:50:42 -08:00
2017-02-23 11:53:22 -08:00
2017-02-03 17:28:29 -05:00
2017-03-01 09:50:58 -08:00
2017-03-02 20:51:15 -05:00
2017-03-03 01:43:38 +01:00
2012-12-11 17:22:27 -08:00
2017-02-22 13:34:00 -07:00
2017-02-22 13:34:00 -07:00
2017-02-22 19:23:14 -08:00
2017-03-02 08:42:29 +01:00
2017-02-22 16:41:30 -08:00
2016-12-06 10:17:03 +02:00
2012-10-13 10:46:48 +01:00
2017-03-02 08:56:04 -07:00
2017-03-02 08:42:36 +01:00
2017-02-24 17:46:54 -08:00
2017-02-24 17:46:56 -08:00
2017-03-02 08:42:38 +01:00
2017-03-03 00:43:11 +01:00
2016-03-02 17:13:02 -08:00
2017-03-03 01:43:47 +01:00
2017-03-02 08:42:29 +01:00
2017-02-24 17:46:57 -08:00
2017-03-02 08:42:24 +01:00
2017-03-02 08:42:24 +01:00
2017-03-02 08:42:24 +01:00
2017-02-24 09:02:10 +01:00
2017-03-02 08:42:38 +01:00
2017-02-24 17:46:55 -08:00
2017-02-27 18:43:48 -08:00
2006-07-13 13:21:35 -07:00
2017-03-03 01:45:41 +01:00
2017-02-23 20:33:51 -08:00
2017-02-23 11:55:41 -07:00
2017-02-27 18:43:46 -08:00
2017-02-03 10:17:02 +01:00
2017-02-24 17:46:56 -08:00
2017-03-03 01:43:48 +01:00
2017-03-03 01:43:48 +01:00
2017-03-02 08:42:29 +01:00
2017-03-02 08:42:27 +01:00
2017-02-22 16:41:27 -08:00
2017-02-22 16:41:27 -08:00
2008-05-26 16:15:32 +02:00
2015-04-14 09:50:27 -07:00
2017-03-02 20:51:15 -05:00
2016-05-19 19:12:14 -07:00
2016-06-11 14:57:56 -07:00
2017-02-22 16:41:30 -08:00
2017-02-22 16:41:30 -08:00
2017-03-02 20:51:15 -05:00
2017-02-13 17:00:06 +13:00
2017-03-02 08:42:29 +01:00
2017-03-03 01:45:25 +01:00
2017-03-03 01:45:25 +01:00
2017-03-03 01:45:39 +01:00
2015-04-22 17:06:49 +02:00
2017-02-22 16:41:26 -08:00
2017-03-06 15:26:37 -06:00
2017-02-24 17:46:55 -08:00
2017-02-27 20:54:05 +02:00
2017-02-22 16:41:29 -08:00
2017-03-02 08:42:25 +01:00
2017-03-08 10:36:03 -08:00
2017-02-24 14:00:23 -08:00
2017-02-24 17:46:54 -08:00