Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 962e7bd4 authored by Deepthi Dharwar's avatar Deepthi Dharwar Committed by Benjamin Herrenschmidt
Browse files

powerpc/pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.



Move the file from arch specific pseries/processor_idle.c
to drivers/cpuidle/cpuidle-pseries.c
Make the relevant Makefile and Kconfig changes.
Also, introduce Kconfig.powerpc in drivers/cpuidle
for all powerpc cpuidle drivers.

Signed-off-by: default avatarDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent d765ff23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF};
extern int powersave_nap;	/* set if nap mode can be used in idle loop */
extern void power7_nap(void);

#ifdef CONFIG_PSERIES_IDLE
#ifdef CONFIG_PSERIES_CPUIDLE
extern void update_smt_snooze_delay(int cpu, int residency);
#else
static inline void update_smt_snooze_delay(int cpu, int residency) {}
+0 −9
Original line number Diff line number Diff line
@@ -119,12 +119,3 @@ config DTL
	  which are accessible through a debugfs file.

	  Say N if you are unsure.

config PSERIES_IDLE
	bool "Cpuidle driver for pSeries platforms"
	depends on CPU_IDLE
	depends on PPC_PSERIES
	default y
	help
	  Select this option to enable processor idle state management
	  through cpuidle subsystem.
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ obj-$(CONFIG_HCALL_STATS) += hvCall_inst.o
obj-$(CONFIG_CMM)		+= cmm.o
obj-$(CONFIG_DTL)		+= dtl.o
obj-$(CONFIG_IO_EVENT_IRQ)	+= io_event_irq.o
obj-$(CONFIG_PSERIES_IDLE)	+= processor_idle.o
obj-$(CONFIG_LPARCFG)		+= lparcfg.o

ifeq ($(CONFIG_PPC_PSERIES),y)
+5 −0
Original line number Diff line number Diff line
@@ -35,6 +35,11 @@ depends on ARM
source "drivers/cpuidle/Kconfig.arm"
endmenu

menu "POWERPC CPU Idle Drivers"
depends on PPC
source "drivers/cpuidle/Kconfig.powerpc"
endmenu

endif

config ARCH_NEEDS_CPU_IDLE_COUPLED
+11 −0
Original line number Diff line number Diff line
#
# POWERPC CPU Idle Drivers
#
config PSERIES_CPUIDLE
	bool "Cpuidle driver for pSeries platforms"
	depends on CPU_IDLE
	depends on PPC_PSERIES
	default y
	help
	  Select this option to enable processor idle state management
	  through cpuidle subsystem.
Loading