x86, acpi, idle: Restructure the mwait idle routines
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Dec 2013 14:08:36 +0000 (15:08 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 19 Dec 2013 19:54:44 +0000 (11:54 -0800)
commit16824255394f55adf31b9a96a9965d8c15bdac4c
treeb28f4a2d59db25700c8b4eafb2e3cfc188c121bc
parent40e2d7f9b5dae048789c64672bf3027fbb663ffa
x86, acpi, idle: Restructure the mwait idle routines

People seem to delight in writing wrong and broken mwait idle routines;
collapse the lot.

This leaves mwait_play_dead() the sole remaining user of __mwait() and
new __mwait() users are probably doing it wrong.

Also remove __sti_mwait() as its unused.

Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Jacob Jun Pan <jacob.jun.pan@linux.intel.com>
Cc: Mike Galbraith <bitbucket@online.de>
Cc: Len Brown <lenb@kernel.org>
Cc: Rui Zhang <rui.zhang@intel.com>
Acked-by: Rafael Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20131212141654.616820819@infradead.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/mwait.h
arch/x86/include/asm/processor.h
arch/x86/kernel/acpi/cstate.c
drivers/acpi/acpi_pad.c
drivers/acpi/processor_idle.c
drivers/idle/intel_idle.c
drivers/thermal/intel_powerclamp.c