Commit 5d6a54688632f640abda71164fea5d171ff07db8
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
Merge tag 'pm-config-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull CONFIG_PM_RUNTIME elimination from Rafael Wysocki: "This removes the last few uses of CONFIG_PM_RUNTIME introduced recently and makes that config option finally go away. CONFIG_PM will be available directly from the menu now and also it will be selected automatically if CONFIG_SUSPEND or CONFIG_HIBERNATION is set" * tag 'pm-config-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM: Eliminate CONFIG_PM_RUNTIME tty: 8250_omap: Replace CONFIG_PM_RUNTIME with CONFIG_PM sound: sst-haswell-pcm: Replace CONFIG_PM_RUNTIME with CONFIG_PM spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
Showing 41 changed files Side-by-side Diff
- arch/arm/configs/ape6evm_defconfig
- arch/arm/configs/armadillo800eva_defconfig
- arch/arm/configs/bcm_defconfig
- arch/arm/configs/bockw_defconfig
- arch/arm/configs/davinci_all_defconfig
- arch/arm/configs/exynos_defconfig
- arch/arm/configs/ezx_defconfig
- arch/arm/configs/hisi_defconfig
- arch/arm/configs/imote2_defconfig
- arch/arm/configs/imx_v6_v7_defconfig
- arch/arm/configs/keystone_defconfig
- arch/arm/configs/kzm9g_defconfig
- arch/arm/configs/lager_defconfig
- arch/arm/configs/mackerel_defconfig
- arch/arm/configs/marzen_defconfig
- arch/arm/configs/omap1_defconfig
- arch/arm/configs/prima2_defconfig
- arch/arm/configs/sama5_defconfig
- arch/arm/configs/shmobile_defconfig
- arch/arm/configs/sunxi_defconfig
- arch/arm/configs/tegra_defconfig
- arch/arm/configs/u8500_defconfig
- arch/arm/configs/vt8500_v6_v7_defconfig
- arch/arm/mach-omap2/Kconfig
- arch/mips/configs/db1xxx_defconfig
- arch/mips/configs/lemote2f_defconfig
- arch/mips/configs/loongson3_defconfig
- arch/mips/configs/nlm_xlp_defconfig
- arch/mips/configs/nlm_xlr_defconfig
- arch/powerpc/configs/ps3_defconfig
- arch/sh/Kconfig
- arch/sh/configs/apsh4ad0a_defconfig
- arch/sh/configs/sdk7786_defconfig
- drivers/spi/spi-img-spfi.c
- drivers/spi/spi-meson-spifc.c
- drivers/tty/serial/8250/8250_omap.c
- drivers/usb/host/isp1760-hcd.c
- drivers/usb/host/oxu210hp-hcd.c
- include/linux/devfreq.h
- kernel/power/Kconfig
- sound/soc/intel/sst-haswell-pcm.c
arch/arm/configs/ape6evm_defconfig
arch/arm/configs/armadillo800eva_defconfig
arch/arm/configs/bcm_defconfig
arch/arm/configs/bockw_defconfig
arch/arm/configs/davinci_all_defconfig
arch/arm/configs/exynos_defconfig
arch/arm/configs/ezx_defconfig
arch/arm/configs/hisi_defconfig
arch/arm/configs/imote2_defconfig
arch/arm/configs/imx_v6_v7_defconfig
arch/arm/configs/keystone_defconfig
arch/arm/configs/kzm9g_defconfig
arch/arm/configs/lager_defconfig
arch/arm/configs/mackerel_defconfig
arch/arm/configs/marzen_defconfig
arch/arm/configs/omap1_defconfig
arch/arm/configs/prima2_defconfig
arch/arm/configs/sama5_defconfig
arch/arm/configs/shmobile_defconfig
arch/arm/configs/sunxi_defconfig
arch/arm/configs/tegra_defconfig
arch/arm/configs/u8500_defconfig
arch/arm/configs/vt8500_v6_v7_defconfig
arch/arm/mach-omap2/Kconfig
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | select ARM_CPU_SUSPEND if PM |
16 | 16 | select OMAP_INTERCONNECT |
17 | 17 | select PM_OPP if PM |
18 | - select PM_RUNTIME if CPU_IDLE | |
18 | + select PM if CPU_IDLE | |
19 | 19 | select SOC_HAS_OMAP2_SDRC |
20 | 20 | |
21 | 21 | config ARCH_OMAP4 |
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | select PL310_ERRATA_588369 if CACHE_L2X0 |
33 | 33 | select PL310_ERRATA_727915 if CACHE_L2X0 |
34 | 34 | select PM_OPP if PM |
35 | - select PM_RUNTIME if CPU_IDLE | |
35 | + select PM if CPU_IDLE | |
36 | 36 | select ARM_ERRATA_754322 |
37 | 37 | select ARM_ERRATA_775420 |
38 | 38 | |
... | ... | @@ -103,7 +103,7 @@ |
103 | 103 | select I2C_OMAP |
104 | 104 | select MENELAUS if ARCH_OMAP2 |
105 | 105 | select NEON if CPU_V7 |
106 | - select PM_RUNTIME | |
106 | + select PM | |
107 | 107 | select REGULATOR |
108 | 108 | select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 |
109 | 109 | select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4 |
arch/mips/configs/db1xxx_defconfig
arch/mips/configs/lemote2f_defconfig
arch/mips/configs/loongson3_defconfig
arch/mips/configs/nlm_xlp_defconfig
arch/mips/configs/nlm_xlr_defconfig
arch/powerpc/configs/ps3_defconfig
arch/sh/Kconfig
arch/sh/configs/apsh4ad0a_defconfig
arch/sh/configs/sdk7786_defconfig
drivers/spi/spi-img-spfi.c
... | ... | @@ -663,7 +663,7 @@ |
663 | 663 | return 0; |
664 | 664 | } |
665 | 665 | |
666 | -#ifdef CONFIG_PM_RUNTIME | |
666 | +#ifdef CONFIG_PM | |
667 | 667 | static int img_spfi_runtime_suspend(struct device *dev) |
668 | 668 | { |
669 | 669 | struct spi_master *master = dev_get_drvdata(dev); |
... | ... | @@ -692,7 +692,7 @@ |
692 | 692 | |
693 | 693 | return 0; |
694 | 694 | } |
695 | -#endif /* CONFIG_PM_RUNTIME */ | |
695 | +#endif /* CONFIG_PM */ | |
696 | 696 | |
697 | 697 | #ifdef CONFIG_PM_SLEEP |
698 | 698 | static int img_spfi_suspend(struct device *dev) |
drivers/spi/spi-meson-spifc.c
... | ... | @@ -413,7 +413,7 @@ |
413 | 413 | } |
414 | 414 | #endif /* CONFIG_PM_SLEEP */ |
415 | 415 | |
416 | -#ifdef CONFIG_PM_RUNTIME | |
416 | +#ifdef CONFIG_PM | |
417 | 417 | static int meson_spifc_runtime_suspend(struct device *dev) |
418 | 418 | { |
419 | 419 | struct spi_master *master = dev_get_drvdata(dev); |
... | ... | @@ -431,7 +431,7 @@ |
431 | 431 | |
432 | 432 | return clk_prepare_enable(spifc->clk); |
433 | 433 | } |
434 | -#endif /* CONFIG_PM_RUNTIME */ | |
434 | +#endif /* CONFIG_PM */ | |
435 | 435 | |
436 | 436 | static const struct dev_pm_ops meson_spifc_pm_ops = { |
437 | 437 | SET_SYSTEM_SLEEP_PM_OPS(meson_spifc_suspend, meson_spifc_resume) |
drivers/tty/serial/8250/8250_omap.c
... | ... | @@ -561,7 +561,7 @@ |
561 | 561 | if (ret) |
562 | 562 | goto err; |
563 | 563 | |
564 | -#ifdef CONFIG_PM_RUNTIME | |
564 | +#ifdef CONFIG_PM | |
565 | 565 | up->capabilities |= UART_CAP_RPM; |
566 | 566 | #endif |
567 | 567 | |
568 | 568 | |
569 | 569 | |
... | ... | @@ -997,12 +997,12 @@ |
997 | 997 | up.port.fifosize = 64; |
998 | 998 | up.tx_loadsz = 64; |
999 | 999 | up.capabilities = UART_CAP_FIFO; |
1000 | -#ifdef CONFIG_PM_RUNTIME | |
1000 | +#ifdef CONFIG_PM | |
1001 | 1001 | /* |
1002 | - * PM_RUNTIME is mostly transparent. However to do it right we need to a | |
1002 | + * Runtime PM is mostly transparent. However to do it right we need to a | |
1003 | 1003 | * TX empty interrupt before we can put the device to auto idle. So if |
1004 | - * PM_RUNTIME is not enabled we don't add that flag and can spare that | |
1005 | - * one extra interrupt in the TX path. | |
1004 | + * PM is not enabled we don't add that flag and can spare that one extra | |
1005 | + * interrupt in the TX path. | |
1006 | 1006 | */ |
1007 | 1007 | up.capabilities |= UART_CAP_RPM; |
1008 | 1008 | #endif |
... | ... | @@ -1105,7 +1105,7 @@ |
1105 | 1105 | return 0; |
1106 | 1106 | } |
1107 | 1107 | |
1108 | -#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME) | |
1108 | +#ifdef CONFIG_PM | |
1109 | 1109 | |
1110 | 1110 | static inline void omap8250_enable_wakeirq(struct omap8250_priv *priv, |
1111 | 1111 | bool enable) |
... | ... | @@ -1179,7 +1179,7 @@ |
1179 | 1179 | #define omap8250_complete NULL |
1180 | 1180 | #endif |
1181 | 1181 | |
1182 | -#ifdef CONFIG_PM_RUNTIME | |
1182 | +#ifdef CONFIG_PM | |
1183 | 1183 | static int omap8250_lost_context(struct uart_8250_port *up) |
1184 | 1184 | { |
1185 | 1185 | u32 val; |
drivers/usb/host/isp1760-hcd.c
drivers/usb/host/oxu210hp-hcd.c
... | ... | @@ -3087,7 +3087,7 @@ |
3087 | 3087 | int ports, i, retval = 1; |
3088 | 3088 | unsigned long flags; |
3089 | 3089 | |
3090 | - /* if !PM_RUNTIME, root hub timers won't get shut down ... */ | |
3090 | + /* if !PM, root hub timers won't get shut down ... */ | |
3091 | 3091 | if (!HC_IS_RUNNING(hcd->state)) |
3092 | 3092 | return 0; |
3093 | 3093 |
include/linux/devfreq.h
... | ... | @@ -188,7 +188,7 @@ |
188 | 188 | extern void devm_devfreq_remove_device(struct device *dev, |
189 | 189 | struct devfreq *devfreq); |
190 | 190 | |
191 | -/* Supposed to be called by PM_SLEEP/PM_RUNTIME callbacks */ | |
191 | +/* Supposed to be called by PM callbacks */ | |
192 | 192 | extern int devfreq_suspend_device(struct devfreq *devfreq); |
193 | 193 | extern int devfreq_resume_device(struct devfreq *devfreq); |
194 | 194 |
kernel/power/Kconfig
... | ... | @@ -94,7 +94,7 @@ |
94 | 94 | config PM_SLEEP |
95 | 95 | def_bool y |
96 | 96 | depends on SUSPEND || HIBERNATE_CALLBACKS |
97 | - select PM_RUNTIME | |
97 | + select PM | |
98 | 98 | |
99 | 99 | config PM_SLEEP_SMP |
100 | 100 | def_bool y |
101 | 101 | |
102 | 102 | |
103 | 103 | |
... | ... | @@ -130,22 +130,18 @@ |
130 | 130 | depends on PM_WAKELOCKS |
131 | 131 | default y |
132 | 132 | |
133 | -config PM_RUNTIME | |
134 | - bool "Run-time PM core functionality" | |
133 | +config PM | |
134 | + bool "Device power management core functionality" | |
135 | 135 | ---help--- |
136 | 136 | Enable functionality allowing I/O devices to be put into energy-saving |
137 | - (low power) states at run time (or autosuspended) after a specified | |
138 | - period of inactivity and woken up in response to a hardware-generated | |
137 | + (low power) states, for example after a specified period of inactivity | |
138 | + (autosuspended), and woken up in response to a hardware-generated | |
139 | 139 | wake-up event or a driver's request. |
140 | 140 | |
141 | 141 | Hardware support is generally required for this functionality to work |
142 | 142 | and the bus type drivers of the buses the devices are on are |
143 | - responsible for the actual handling of the autosuspend requests and | |
143 | + responsible for the actual handling of device suspend requests and | |
144 | 144 | wake-up events. |
145 | - | |
146 | -config PM | |
147 | - def_bool y | |
148 | - depends on PM_SLEEP || PM_RUNTIME | |
149 | 145 | |
150 | 146 | config PM_DEBUG |
151 | 147 | bool "Power Management Debug Support" |
sound/soc/intel/sst-haswell-pcm.c
... | ... | @@ -998,7 +998,7 @@ |
998 | 998 | return 0; |
999 | 999 | } |
1000 | 1000 | |
1001 | -#ifdef CONFIG_PM_RUNTIME | |
1001 | +#ifdef CONFIG_PM | |
1002 | 1002 | |
1003 | 1003 | static int hsw_pcm_runtime_idle(struct device *dev) |
1004 | 1004 | { |
... | ... | @@ -1057,7 +1057,7 @@ |
1057 | 1057 | #define hsw_pcm_runtime_resume NULL |
1058 | 1058 | #endif |
1059 | 1059 | |
1060 | -#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PM_RUNTIME) | |
1060 | +#ifdef CONFIG_PM | |
1061 | 1061 | |
1062 | 1062 | static void hsw_pcm_complete(struct device *dev) |
1063 | 1063 | { |