]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:52 +0000 (09:07 -0700)
commite9da4d6ac69af64671ea76662b74a522a6e54dd2
treeecf66d66e4041bfebabb2bebbf393c2354338e51
parent07a015ad4dd3a5a8651fca4cc1477ed8f69c7393
x86/idle: Restore trace_cpu_idle to mwait_idle() calls

commit e43d0189ac02415fe4487f79fc35e8f147e9ea0d upstream.

Commit b253149b843f ("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: b253149b843f ("sched/idle/x86: Restore mwait_idle() to ...")
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Cc: <len.brown@intel.com>
Link: http://lkml.kernel.org/r/1440046479-4262-1-git-send-email-jszhang@marvell.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/process.c