Deepthi Dharwar
8ea959a17f
cpuidle/powerpc: Fix smt_snooze_delay functionality.
...
smt_snooze_delay was designed to delay idle loop's nap entry
in the native idle code before it got ported over to use as part of
the cpuidle framework.
A -ve value assigned to smt_snooze_delay should result in
busy looping, in other words disabling the entry to nap state.
- https://lists.ozlabs.org/pipermail/linuxppc-dev/2010-May/082450.html
This particular functionality can be achieved currently by
echo 1 > /sys/devices/system/cpu/cpu*/state1/disable
but it is broken when one assigns -ve value to the smt_snooze_delay
variable either via sysfs entry or ppc64_cpu util.
This patch aims to fix this, by disabling nap state when smt_snooze_delay
variable is set to -ve value.
Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-10-18 10:57:24 +11:00
..
2012-07-11 14:18:40 +10:00
2012-07-11 14:18:40 +10:00
2012-03-28 18:30:02 +01:00
2012-09-07 09:48:59 +10:00
2011-10-31 19:30:44 -04:00
2011-12-21 14:29:42 -08:00
2011-10-31 19:30:44 -04:00
2012-07-10 19:18:35 +10:00
2012-09-12 14:57:09 -05:00
2012-09-12 14:57:09 -05:00
2011-12-20 10:20:19 -05:00
2012-03-28 18:30:02 +01:00
2012-09-05 16:05:22 +10:00
2012-08-24 20:26:07 +10:00
2012-09-12 14:57:09 -05:00
2012-09-05 15:19:30 +10:00
2012-10-12 10:49:08 +09:00
2012-10-12 10:49:08 +09:00
2012-05-30 11:43:10 +02:00
2012-05-30 11:43:10 +02:00
2012-09-12 14:57:09 -05:00
2012-09-17 16:31:51 +10:00
2012-09-07 11:44:30 +10:00
2011-10-31 19:30:41 -04:00
2012-07-10 19:18:30 +10:00
2012-07-27 11:42:34 +10:00
2012-03-09 10:55:08 +11:00
2012-03-09 10:55:08 +11:00
2012-03-09 10:55:08 +11:00
2012-05-24 16:17:30 -07:00
2012-03-09 13:25:06 +11:00
2012-04-08 12:51:19 +03:00
2012-09-12 14:57:08 -05:00
2012-09-10 09:59:13 +10:00
2012-09-05 15:19:33 +10:00
2012-07-11 14:18:22 +10:00
2012-07-11 14:18:22 +10:00
2012-07-11 14:18:22 +10:00
2012-07-11 14:18:22 +10:00
2012-09-05 16:05:20 +10:00
2012-05-08 12:35:07 +02:00
2011-10-31 19:30:37 -04:00
2011-10-31 19:30:44 -04:00
2011-11-28 21:13:18 +02:00
2012-10-04 18:03:20 +10:00
2012-09-17 16:31:54 +10:00
2012-03-21 11:16:11 +11:00
2011-11-16 14:25:19 +11:00
2012-08-24 20:26:06 +10:00
2012-03-28 18:30:02 +01:00
2012-05-30 11:43:11 +02:00
2012-07-24 12:01:20 -07:00
2012-01-25 13:33:22 +11:00
2012-03-28 18:30:02 +01:00
2012-01-12 20:13:03 -08:00
2012-01-12 20:13:03 -08:00
2012-09-07 11:44:33 +10:00
2012-09-05 15:35:19 +10:00
2012-09-30 23:31:19 -04:00
2012-09-30 23:31:19 -04:00
2012-09-30 23:35:51 -04:00
2012-06-08 19:59:08 +10:00
2011-10-31 19:30:44 -04:00
2012-03-09 11:39:29 +11:00
2012-09-10 09:35:27 +10:00
2012-03-20 10:41:44 -07:00
2012-06-13 15:42:22 -06:00
2011-11-25 14:53:15 +11:00
2012-07-24 16:17:07 -07:00
2012-09-17 16:07:43 +10:00
2012-02-29 17:15:08 -05:00
2012-10-06 03:05:16 +09:00
2012-09-30 23:31:19 -04:00
2012-10-12 10:49:08 +09:00
2011-09-20 16:09:48 +10:00
2012-10-06 03:16:12 +09:00
2011-10-31 19:30:44 -04:00
2012-09-07 11:44:30 +10:00
2012-04-30 15:37:28 +10:00
2012-09-10 09:59:10 +10:00
2011-12-20 10:21:08 -05:00
2012-09-05 15:19:30 +10:00
2012-09-10 09:35:44 +10:00
2012-03-28 15:58:21 -07:00
2011-11-25 14:11:29 +11:00
2012-07-11 07:44:03 -05:00
2012-09-27 12:51:06 +10:00
2012-07-11 07:44:03 -05:00
2012-10-01 09:58:18 -04:00
2012-06-01 12:58:51 -04:00
2012-09-10 09:59:10 +10:00
2012-06-01 12:58:51 -04:00
2011-07-26 16:49:47 -07:00
2012-09-19 08:38:16 -05:00
2012-03-28 18:30:02 +01:00
2011-10-31 19:30:44 -04:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2012-10-12 10:49:08 +09:00
2012-08-24 20:26:07 +10:00
2012-10-18 10:57:24 +11:00
2012-10-12 22:17:48 +09:00
2012-09-07 09:48:59 +10:00
2012-03-28 11:33:23 +11:00
2012-09-05 15:35:19 +10:00
2012-09-07 09:48:49 +10:00
2012-04-30 15:37:17 +10:00
2012-09-05 15:19:33 +10:00
2012-03-09 10:54:59 +11:00