summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-12 22:13:05 +0900
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-12 22:13:05 +0900
commit0588f1f934791b79d0a1e9b327be9b6eb361d2b8 (patch)
treec0b305c494ed32df711c576d9dbd78c8cb394654 /kernel/time
parent9d55ab71b735621a63c8923ba934d87879847cef (diff)
parent301a5cba2887d1f640e6d5184b05a6d7132017d5 (diff)
downloadop-kernel-dev-0588f1f934791b79d0a1e9b327be9b6eb361d2b8.zip
op-kernel-dev-0588f1f934791b79d0a1e9b327be9b6eb361d2b8.tar.gz
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar: "A CPU hotplug related crash fix and a nohz accounting fixlet." * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched: Update sched_domains_numa_masks[][] when new cpus are onlined sched: Ensure 'sched_domains_numa_levels' is safe to use in other functions nohz: Fix one jiffy count too far in idle cputime
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index f423bdd0..a402608 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -835,7 +835,7 @@ static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer)
*/
if (ts->tick_stopped) {
touch_softlockup_watchdog();
- if (idle_cpu(cpu))
+ if (is_idle_task(current))
ts->idle_jiffies++;
}
update_process_times(user_mode(regs));
OpenPOWER on IntegriCloud