Rafael J. Wysocki
01e04f466e
idle / sleep: Avoid excessive disabling and enabling interrupts
...
Disabling interrupts at the end of cpuidle_enter_freeze() is not
useful, because its caller, cpuidle_idle_call(), re-enables them
right away after invoking it.
To avoid that unnecessary back and forth dance with interrupts,
make cpuidle_enter_freeze() enable interrupts after calling
enter_freeze_proper() and drop the local_irq_disable() at its
end, so that all of the code paths in it end up with interrupts
enabled. Then, cpuidle_idle_call() will not need to re-enable
interrupts after calling cpuidle_enter_freeze() any more, because
the latter will return with interrupts enabled, in analogy with
cpuidle_enter().
Reported-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org >
2015-02-28 23:46:24 +01:00
..
2015-01-27 13:55:36 -08:00
2014-08-08 16:30:24 -07:00
2015-02-19 12:39:03 -06:00
2015-02-16 14:58:12 -08:00
2015-01-09 17:25:44 +01:00
2015-02-16 15:20:40 -08:00
2015-02-06 21:28:35 +01:00
2015-02-21 10:45:03 -08:00
2015-02-13 23:49:36 +01:00
2015-02-20 15:13:29 -08:00
2015-02-21 10:36:06 -08:00
2015-02-28 23:46:24 +01:00
2015-02-21 11:05:22 -08:00
2015-02-13 21:21:37 -08:00
2015-01-25 23:17:28 -05:00
2014-10-09 22:26:04 -04:00
2014-12-13 12:42:53 -08:00
2014-09-23 16:37:53 -04:00
2014-12-30 10:45:47 -08:00
2015-01-23 00:23:58 -05:00
2015-02-11 20:07:47 -08:00
2015-02-17 15:27:47 -08:00
2014-06-04 16:54:14 -07:00
2014-08-08 15:57:18 -07:00
2014-07-24 21:53:47 +10:00
2014-07-15 11:05:09 -04:00
2015-02-13 21:21:36 -08:00
2015-02-12 18:54:12 -08:00
2014-10-28 10:46:05 +01:00
2015-01-06 11:01:14 -08:00
2015-02-13 21:21:37 -08:00
2014-08-25 15:42:19 -07:00
2014-07-23 10:18:06 -07:00
2014-06-04 16:54:15 -07:00
2015-02-11 17:06:03 -08:00
2014-11-19 15:25:26 -05:00
2015-02-12 18:54:10 -08:00
2014-10-21 23:44:20 +02:00
2015-02-12 18:54:12 -08:00
2014-12-09 16:58:40 -06:00
2014-06-04 16:54:15 -07:00
2014-10-29 11:18:18 -04:00
2014-10-14 02:18:16 +02:00
2014-09-10 15:42:12 -07:00
2015-01-14 15:07:32 +01:00
2015-02-17 14:34:51 -08:00
2014-12-10 17:41:17 -08:00
2015-02-13 21:21:42 -08:00
2014-10-09 22:25:51 -04:00
2014-06-04 16:54:15 -07:00
2015-02-11 20:25:11 -08:00
2015-02-17 14:34:53 -08:00
2015-01-06 11:04:29 -08:00
2014-12-04 14:34:54 -05:00
2015-02-13 21:21:38 -08:00
2014-12-22 15:40:48 +01:00
2015-01-20 11:38:31 +10:30
2014-12-16 15:53:03 -08:00
2014-12-16 15:53:03 -08:00
2015-02-13 21:21:38 -08:00
2015-02-17 14:34:51 -08:00
2015-01-17 10:02:23 +13:00
2014-09-26 00:00:06 -07:00
2015-02-05 15:09:25 +01:00
2015-02-17 14:34:55 -08:00
2015-02-17 14:34:51 -08:00
2014-10-15 07:48:18 +02:00
2015-01-23 11:33:51 +01:00
2015-02-09 15:24:03 -08:00
2014-12-13 12:42:48 -08:00
2014-06-04 16:54:15 -07:00
2014-12-13 12:42:51 -08:00
2015-02-21 19:41:38 -08:00
2014-12-10 17:41:10 -08:00
2015-02-10 14:30:34 -08:00
2014-07-17 09:35:17 -04:00
2015-01-18 01:03:45 -05:00
2014-08-08 15:57:18 -07:00
2014-09-16 13:41:06 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2014-12-05 17:19:27 -06:00
2014-12-17 12:31:40 -08:00
2014-08-26 13:45:45 -04:00
2014-12-17 12:31:40 -08:00
2014-06-06 16:08:16 -07:00
2014-12-04 14:34:47 -05:00
2015-02-12 18:54:13 -08:00
2015-02-13 21:21:37 -08:00