John Kacur 9d35935747 pm_qos_requirement might sleep
Make PM_QOS and CPU_IDLE play nicer when run with the RT-Preempt kernel.

The purpose of the patch is to remove the spin_lock around the read in the
function pm_qos_requirement - since spinlocks can sleep in -rt and this
function is called from idle.

CPU_IDLE polls the target_value's of some of the pm_qos parameters from
the idle loop causing sleeping locking warnings.  Changing the
target_value to an atomic avoids this issue.

Remove the spinlock in pm_qos_requirement by making target_value an atomic
type.

Signed-off-by: mark gross <mgross@linux.intel.com>
Signed-off-by: John Kacur <jkacur@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-09-02 19:21:40 -07:00
..
2008-07-28 23:32:00 +02:00
2008-05-01 08:03:59 -07:00
2008-07-26 20:53:20 -04:00
2008-07-28 16:30:21 -07:00
2008-03-30 14:18:41 -07:00
2008-07-28 14:37:38 +02:00
2007-07-16 09:05:50 -07:00
2008-08-01 08:39:35 -05:00
2008-07-26 12:00:09 -07:00
2008-08-13 12:55:10 +02:00
2008-09-02 19:21:40 -07:00
2008-08-25 17:39:57 +02:00
2008-08-11 14:49:29 +02:00
2008-08-28 13:42:38 +02:00
2007-07-16 09:05:50 -07:00
2008-08-19 20:37:07 -07:00
2008-02-06 10:41:02 -08:00
2008-07-25 10:53:45 -07:00
2008-07-27 09:45:34 -07:00
2008-04-30 08:29:53 -07:00
2008-02-08 09:22:31 -08:00