aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-07-24 20:05:23 +0200
committerIngo Molnar <[email protected]>2009-08-02 14:03:57 +0200
commit716a42348cdaf04534b15fbdc9c83e25baebfed5 (patch)
tree5a49fe4c0ff258ee03478994ffc7fbe8032a340f /tools/perf/scripts/python
parenta004cd42181409eda70804ded240a791f4564d61 (diff)
sched: Fix cond_resched_lock() in !CONFIG_PREEMPT
The might_sleep() test inside cond_resched_lock() assumes the spinlock is held and then preemption is disabled. This is true with CONFIG_PREEMPT but the preempt_count() doesn't change otherwise. Check by starting from the appropriate preempt offset depending on the config. Reported-by: Li Zefan <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions