PM idle: remove global declaration of pm_idle
authorLen Brown <len.brown@intel.com>
Sun, 10 Feb 2013 02:51:27 +0000 (21:51 -0500)
committerLen Brown <len.brown@intel.com>
Mon, 18 Feb 2013 04:37:09 +0000 (23:37 -0500)
pm_idle appears in no generic Linux code,
it appears only in architecture-specific code.

Thus, pm_idle should not be declared in pm.h.

Architectures that  use an idle function pointer
should delcare one local to their architecture,
and/or use cpuidle.

Signed-off-by: Len Brown <len.brown@intel.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Cc: linux-pm@vger.kernel.org
include/linux/pm.h

index 03d7bb1..97bcf23 100644 (file)
@@ -31,7 +31,6 @@
 /*
  * Callbacks for platform drivers to implement.
  */
-extern void (*pm_idle)(void);
 extern void (*pm_power_off)(void);
 extern void (*pm_power_off_prepare)(void);