/* * poweroff.c - sysrq handler to gracefully power down machine. * * This file is released under the GPL v2 */ #include #include #include #include #include #include #include /* * When the user hits Sys-Rq o to power down the machine this is the * callback we use. */ static void do_poweroff(struct work_struct *dummy) { kernel_power_off(); } static DECLARE_WORK(poweroff_work, do_poweroff); static void handle_poweroff(int key) { /* run sysrq poweroff on boot cpu */ schedule_work_on(cpumask_first(cpu_online_mask), &poweroff_work); } static struct sysrq_key_op sysrq_poweroff_op = { .handler = handle_poweroff, .help_msg = "poweroff(o)", .action_msg = "Power Off", .enable_mask = SYSRQ_ENABLE_BOOT, }; static int __init pm_sysrq_init(void) { register_sysrq_key('o', &sysrq_poweroff_op); return 0; } subsys_initcall(pm_sysrq_init); 74f485d3a09d53c2ead0000378d'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2016-10-21 14:47:42 +0100
committerMark Brown <broonie@kernel.org>2016-10-24 17:43:05 +0100
commit88f0e3a5e6ed674f485d3a09d53c2ead0000378d (patch)
tree8214d62db45ab4ab9a54c475e0b91ea8d7ebdfa9 /net/mac802154/Kconfig
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: arizona-ldo1: Set appropriate value for ramp_delay
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/mac802154/Kconfig')