]> git.baikalelectronics.ru Git - kernel.git/commit
x86/idle: Restore trace_cpu_idle to mwait_idle() calls
authorJisheng Zhang <jszhang@marvell.com>
Thu, 20 Aug 2015 04:54:39 +0000 (12:54 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Aug 2015 19:37:45 +0000 (21:37 +0200)
commitd3b985d4f157f73bb842d8874919ced840278839
tree91d56ed51d8a7fda2e4062c576f00b63b1ccec4e
parent3f11dd84b0163ce77839bad65eba5c707f61f79a
x86/idle: Restore trace_cpu_idle to mwait_idle() calls

Commit 84a90ef6a414 ("sched/idle/x86: Restore mwait_idle() to fix boot
hangs, to improve power savings and to improve performance") restores
mwait_idle(), but the trace_cpu_idle related calls are missing. This
causes powertop on my old desktop powered by Intel Core2 E6550 to
report zero wakeups and zero events.

Add them back to restore the proper behaviour.

Fixes: 84a90ef6a414 ("sched/idle/x86: Restore mwait_idle() to ...")
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Cc: <len.brown@intel.com>
Cc: stable@vger.kernel.org # 4.1
Link: http://lkml.kernel.org/r/1440046479-4262-1-git-send-email-jszhang@marvell.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/process.c