]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
intel_idle: Remove redundant initialization calls.
authorRichard Cochran <rcochran@linutronix.de>
Wed, 6 Apr 2016 21:00:50 +0000 (17:00 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 20:10:53 +0000 (22:10 +0200)
commit4a3dfb3fc0fb0fc9acd36c94b7145f9c9dd4d93a
treea41662967818967f79a32924c11314c02be991cc
parent5469c827d20ab013f43d4f5f94e101d0cf7afd2c
intel_idle: Remove redundant initialization calls.

The function, intel_idle_cpuidle_driver_init, makes calls on each CPU
to auto_demotion_disable() and c1e_promotion_disable().  These calls
are redundant, as intel_idle_cpu_init() does the same calls just a bit
later on.  They are also premature, as the driver registration may yet
fail.

This patch removes the redundant code.

Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c