diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-29 15:46:14 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-29 15:46:14 -0500 |
commit | 9ee71f513c698b05f67e74f7ce66ba4f23f9073f (patch) | |
tree | bdbfad86c3473998a844e7cfc501aad688043a34 /kernel | |
parent | aa849506742212659f1ac3b7c3ea387478f81ae0 (diff) | |
parent | a474a515497ef3566cfc17a2cab3d54d6d50ff1c (diff) |
Merge branch 'pm-cpuidle'
* pm-cpuidle:
cpuidle: Measure idle state durations with monotonic clock
cpuidle: fix a suspicious RCU usage in menu governor
cpuidle: support multiple drivers
cpuidle: prepare the cpuidle core to handle multiple drivers
cpuidle: move driver checking within the lock section
cpuidle: move driver's refcount to cpuidle
cpuidle: fixup device.h header in cpuidle.h
cpuidle / sysfs: move structure declaration into the sysfs.c file
cpuidle: Get typical recent sleep interval
cpuidle: Set residency to 0 if target Cstate not enter
cpuidle: Quickly notice prediction failure in general case
cpuidle: Quickly notice prediction failure for repeat mode
cpuidle / sysfs: move kobj initialization in the syfs file
cpuidle / sysfs: change function parameter
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/tick-sched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index a40260885265..6f337068dc4c 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -526,6 +526,8 @@ void tick_nohz_irq_exit(void) | |||
526 | if (!ts->inidle) | 526 | if (!ts->inidle) |
527 | return; | 527 | return; |
528 | 528 | ||
529 | /* Cancel the timer because CPU already waken up from the C-states*/ | ||
530 | menu_hrtimer_cancel(); | ||
529 | __tick_nohz_idle_enter(ts); | 531 | __tick_nohz_idle_enter(ts); |
530 | } | 532 | } |
531 | 533 | ||
@@ -621,6 +623,8 @@ void tick_nohz_idle_exit(void) | |||
621 | 623 | ||
622 | ts->inidle = 0; | 624 | ts->inidle = 0; |
623 | 625 | ||
626 | /* Cancel the timer because CPU already waken up from the C-states*/ | ||
627 | menu_hrtimer_cancel(); | ||
624 | if (ts->idle_active || ts->tick_stopped) | 628 | if (ts->idle_active || ts->tick_stopped) |
625 | now = ktime_get(); | 629 | now = ktime_get(); |
626 | 630 | ||