diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-15 17:04:00 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-15 17:04:00 -0400 |
| commit | 37cae5e24981f4619372e6a29456d34e4cbdc5e2 (patch) | |
| tree | d234d751ccb5f46a2632aa9ccffbd0cdbad31941 /kernel | |
| parent | d21572c5157174c8b13e892e19e09d70e06b4807 (diff) | |
| parent | b47430d3adbedbfdb5979ba4874f5dadf94f16b1 (diff) | |
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fixes from Thomas Gleixner:
- Two fixlets for the fallout of the generic idle task conversion
- Documentation update
* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
rcu/idle: Wrap cpu-idle poll mode within rcu_idle_enter/exit
idle: Fix hlt/nohlt command-line handling in new generic idle
kthread: Document ways of reducing OS jitter due to per-CPU kthreads
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/cpu/idle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cpu/idle.c b/kernel/cpu/idle.c index 8b86c0c68edf..d5585f5e038e 100644 --- a/kernel/cpu/idle.c +++ b/kernel/cpu/idle.c | |||
| @@ -40,11 +40,13 @@ __setup("hlt", cpu_idle_nopoll_setup); | |||
| 40 | 40 | ||
| 41 | static inline int cpu_idle_poll(void) | 41 | static inline int cpu_idle_poll(void) |
| 42 | { | 42 | { |
| 43 | rcu_idle_enter(); | ||
| 43 | trace_cpu_idle_rcuidle(0, smp_processor_id()); | 44 | trace_cpu_idle_rcuidle(0, smp_processor_id()); |
| 44 | local_irq_enable(); | 45 | local_irq_enable(); |
| 45 | while (!need_resched()) | 46 | while (!need_resched()) |
| 46 | cpu_relax(); | 47 | cpu_relax(); |
| 47 | trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); | 48 | trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); |
| 49 | rcu_idle_exit(); | ||
| 48 | return 1; | 50 | return 1; |
| 49 | } | 51 | } |
| 50 | 52 | ||
