Merge tag 'pm-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 May 2022 18:37:26 +0000 (11:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 May 2022 18:37:26 +0000 (11:37 -0700)
Pull more power management updates from Rafael Wysocki:
 "These update the ARM cpufreq drivers and fix up the CPPC cpufreq
  driver after recent changes, update the OPP code and PM documentation
  and add power sequences support to the system reboot and power off
  code.

  Specifics:

   - Add Tegra234 cpufreq support (Sumit Gupta)

   - Clean up and enhance the Mediatek cpufreq driver (Wan Jiabing,
     Rex-BC Chen, and Jia-Wei Chang)

   - Fix up the CPPC cpufreq driver after recent changes (Zheng Bin,
     Pierre Gondois)

   - Minor update to dt-binding for Qcom's opp-v2-kryo-cpu (Yassine
     Oudjana)

   - Use list iterator only inside the list_for_each_entry loop
     (Xiaomeng Tong, and Jakob Koschel)

   - New APIs related to finding OPP based on interconnect bandwidth
     (Krzysztof Kozlowski)

   - Fix the missing of_node_put() in _bandwidth_supported() (Dan
     Carpenter)

   - Cleanups (Krzysztof Kozlowski, and Viresh Kumar)

   - Add Out of Band mode description to the intel-speed-select utility
     documentation (Srinivas Pandruvada)

   - Add power sequences support to the system reboot and power off code
     and make related platform-specific changes for multiple platforms
     (Dmitry Osipenko, Geert Uytterhoeven)"

* tag 'pm-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (60 commits)
  cpufreq: CPPC: Fix unused-function warning
  cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE
  Documentation: admin-guide: PM: Add Out of Band mode
  kernel/reboot: Change registration order of legacy power-off handler
  m68k: virt: Switch to new sys-off handler API
  kernel/reboot: Add devm_register_restart_handler()
  kernel/reboot: Add devm_register_power_off_handler()
  soc/tegra: pmc: Use sys-off handler API to power off Nexus 7 properly
  reboot: Remove pm_power_off_prepare()
  regulator: pfuze100: Use devm_register_sys_off_handler()
  ACPI: power: Switch to sys-off handler API
  memory: emif: Use kernel_can_power_off()
  mips: Use do_kernel_power_off()
  ia64: Use do_kernel_power_off()
  x86: Use do_kernel_power_off()
  sh: Use do_kernel_power_off()
  m68k: Switch to new sys-off handler API
  powerpc: Use do_kernel_power_off()
  xen/x86: Use do_kernel_power_off()
  parisc: Use do_kernel_power_off()
  ...

1  2 
arch/m68k/include/asm/machdep.h
arch/m68k/kernel/setup_mm.c
arch/m68k/kernel/setup_no.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/xmon/xmon.c
drivers/memory/emif.c
drivers/soc/tegra/pmc.c
include/linux/pm.h
include/linux/reboot.h
kernel/reboot.c

Simple merge
@@@ -87,9 -87,17 +87,8 @@@ void (*mach_sched_init) (void) __initda
  void (*mach_init_IRQ) (void) __initdata = NULL;
  void (*mach_get_model) (char *model);
  void (*mach_get_hardware_list) (struct seq_file *m);
 -/* machine dependent timer functions */
 -int (*mach_hwclk) (int, struct rtc_time*);
 -EXPORT_SYMBOL(mach_hwclk);
 -unsigned int (*mach_get_ss)(void);
 -int (*mach_get_rtc_pll)(struct rtc_pll_info *);
 -int (*mach_set_rtc_pll)(struct rtc_pll_info *);
 -EXPORT_SYMBOL(mach_get_ss);
 -EXPORT_SYMBOL(mach_get_rtc_pll);
 -EXPORT_SYMBOL(mach_set_rtc_pll);
  void (*mach_reset)( void );
  void (*mach_halt)( void );
- void (*mach_power_off)( void );
  #ifdef CONFIG_HEARTBEAT
  void (*mach_heartbeat) (int);
  EXPORT_SYMBOL(mach_heartbeat);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -70,9 -160,14 +160,10 @@@ extern void kernel_restart_prepare(cha
  extern void kernel_restart(char *cmd);
  extern void kernel_halt(void);
  extern void kernel_power_off(void);
+ extern bool kernel_can_power_off(void);
  
 -extern int C_A_D; /* for sysctl */
  void ctrl_alt_del(void);
  
 -#define POWEROFF_CMD_PATH_LEN 256
 -extern char poweroff_cmd[POWEROFF_CMD_PATH_LEN];
 -
  extern void orderly_poweroff(bool force);
  extern void orderly_reboot(void);
  void hw_protection_shutdown(const char *reason, int ms_until_forced);
diff --cc kernel/reboot.c
Simple merge