The perf cstate driver is yet another trainwreck vs. cpu hotplug handling. The hotplug code is not only disfunctional, it's also a uncomprehensible mess.
The following series fixes the hotplug functionality, sanitizes error handling and makes the driver modular. It depends on Kans modularization support for the uncore and rapl drivers: http://lkml.kernel.org/r/[email protected] http://lkml.kernel.org/r/[email protected] as it uses Kconfig and Makefile which get introduced by those patches. Thanks, tglx --- Kconfig.perf | 8 events/intel/Makefile | 4 events/intel/cstate.c | 536 +++++++++++++++++++++++--------------------------- 3 files changed, 258 insertions(+), 290 deletions(-)

