PM: cpuidle: Fix cpuidle_poll_state_init() prototype
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Feb 2018 10:34:22 +0000 (11:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Feb 2018 10:34:22 +0000 (11:34 +0100)
commitd7212cfb05ba802bea4dd6c90d61cfe6366ea224
tree92b37c0446514a1304d5222337f93189c1c67650
parentb6d8ef86cb7b8b6920b6815ebf1352757d3adb87
PM: cpuidle: Fix cpuidle_poll_state_init() prototype

Commit f85942207516 (x86: PM: Make APM idle driver initialize polling
state) made apm_init() call cpuidle_poll_state_init(), but that only
is defined for CONFIG_CPU_IDLE set, so make the empty stub of it
available for CONFIG_CPU_IDLE unset too to fix the resulting build
issue.

Fixes: f85942207516 (x86: PM: Make APM idle driver initialize polling state)
Cc: 4.14+ <stable@vger.kernel.org> # 4.14+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/cpuidle.h