intel-idle: convert to x86_cpu_id auto probing
authorAndi Kleen <ak@linux.intel.com>
Wed, 25 Jan 2012 23:09:07 +0000 (00:09 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Jan 2012 00:48:11 +0000 (16:48 -0800)
commitb66b8b9a4a79087dde1b358a016e5c8739ccf186
treea78f20cafa051b74241c54eb09a4078148713d6d
parent3bd391f056df61e928de1680ff4a3e7e07e5b399
intel-idle: convert to x86_cpu_id auto probing

With this it should be automatically loaded on suitable systems by
udev.

The old switch () is replaced with a table based approach, this
also cleans up the code.

Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/idle/intel_idle.c