History

Merge tag 'pm+acpi-4.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management and ACPI fixes from Rafael Wysocki: "Two build fixes for cpufreq drivers (including one for breakage introduced recently) and a fix for a graph tracer crash when used over suspend-to-RAM on x86. Specifics: - Prevent the graph tracer from crashing when used over suspend-to- RAM on x86 by pausing it before invoking do_suspend_lowlevel() and un-pausing it when that function has returned (Todd Brandt). - Fix build issues in the qoriq and mediatek cpufreq drivers related to broken dependencies on THERMAL (Arnd Bergmann)" * tag 'pm+acpi-4.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM / sleep / x86: Fix crash on graph trace through x86 suspend cpufreq: mediatek: allow building as a module cpufreq: qoriq: allow building as module with THERMAL=m

Linus Torvalds committed 10 years ago

Commit b80e8e22 parents ed385c7 bfc6b974 files · +11 −2Browse files

Unified · Split

4 files
  1. arch/x86/kernel/acpi/sleep.c +7 −0
  2. drivers/cpufreq/Kconfig +1 −0
  3. drivers/cpufreq/Kconfig.arm +2 −2
  4. drivers/cpufreq/mt8173-cpufreq.c +1 −0
arch/x86/kernel/acpi/sleep.c+7−0
@@ -16,6 +16,7 @@ · 15 unmodified lines
1616 #include <asm/cacheflush.h>
1717 #include <asm/realmode.h>
1818
19+#include <linux/ftrace.h>
1920 #include "../../realmode/rm/wakeup.h"
2021 #include "sleep.h"
2122
@@ -107,7 +108,13 @@ int x86_acpi_suspend_lowlevel(void) · 85 unmodified lines
107108 saved_magic = 0x123456789abcdef0L;
108109 #endif /* CONFIG_64BIT */
109110
111+ /*
112+ * Pause/unpause graph tracing around do_suspend_lowlevel as it has
113+ * inconsistent call/return info after it jumps to the wakeup vector.
114+ */
115+ pause_graph_tracing();
110116 do_suspend_lowlevel();
117+ unpause_graph_tracing();
111118 return 0;
112119 }
113120
drivers/cpufreq/Kconfig+1−0
@@ -296,6 +296,7 @@ endif · 295 unmodified lines
296296 config QORIQ_CPUFREQ
297297 tristate "CPU frequency scaling driver for Freescale QorIQ SoCs"
298298 depends on OF && COMMON_CLK && (PPC_E500MC || ARM)
299+ depends on !CPU_THERMAL || THERMAL
299300 select CLK_QORIQ
300301 help
301302 This adds the CPUFreq driver support for Freescale QorIQ SoCs
drivers/cpufreq/Kconfig.arm+2−2
@@ -84,10 +84,10 @@ config ARM_KIRKWOOD_CPUFREQ · 83 unmodified lines
8484 SoCs.
8585
8686 config ARM_MT8173_CPUFREQ
87− bool "Mediatek MT8173 CPUFreq support"
87+ tristate "Mediatek MT8173 CPUFreq support"
8888 depends on ARCH_MEDIATEK && REGULATOR
8989 depends on ARM64 || (ARM_CPU_TOPOLOGY && COMPILE_TEST)
90− depends on !CPU_THERMAL || THERMAL=y
90+ depends on !CPU_THERMAL || THERMAL
9191 select PM_OPP
9292 help
9393 This adds the CPUFreq driver support for Mediatek MT8173 SoC.
drivers/cpufreq/mt8173-cpufreq.c+1−0
@@ -17,6 +17,7 @@ · 16 unmodified lines
1717 #include <linux/cpu_cooling.h>
1818 #include <linux/cpufreq.h>
1919 #include <linux/cpumask.h>
20+#include <linux/module.h>
2021 #include <linux/of.h>
2122 #include <linux/platform_device.h>
2223 #include <linux/pm_opp.h>