]> git.baikalelectronics.ru Git - 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)
commit1dae163c43e1a6812a87cd65796840db68b031ec
treea41662967818967f79a32924c11314c02be991cc
parentf58035c17854cfc3d64bc053f91dbbccf0d908bf
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