How to make linux power off when halt is run?
问题 I have successfully used the pm_power_off function pointer to make my custom Linux board call its power management chip over i2c (to turn the power off). I would like the Linux halt command to switch the power off too. How can I achieve this? The (ARM) code for machine_halt does not have an pointer analogous to machine_power_off 's pm_power_off . arch/arm/kernel/reboot.c: /* * Halting simply requires that the secondary CPUs stop performing any * activity (executing tasks, handling interrupts)