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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:20 +0000 (15:42 +0100)
commite578fedba81e72e195fe71f893828d4597714db5
treeccbe1e7b400bdc655d26e42af4151630b5a98cd4
parentc59cce7943dff0fbafcaa4e71149ee1da879d03f
PM: cpuidle: Fix cpuidle_poll_state_init() prototype

commit d7212cfb05ba802bea4dd6c90d61cfe6366ea224 upstream.

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)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/cpuidle.h