pr_emerg("Restarting system\n");
else
pr_emerg("Restarting system with command '%s'\n", cmd);
+ printk(KERN_EMERG "Current task:%s(%d) Parent task:%s(%d)\n",
+ current->comm, current->pid,
+ current->real_parent->comm,
+ current->real_parent->pid);
kmsg_dump(KMSG_DUMP_RESTART);
machine_restart(cmd);
}
migrate_to_reboot_cpu();
syscore_shutdown();
pr_emerg("Power down\n");
+ printk(KERN_EMERG "Current task:%s(%d) Parent task:%s(%d)\n",
+ current->comm, current->pid,
+ current->real_parent->comm,
+ current->real_parent->pid);
kmsg_dump(KMSG_DUMP_POWEROFF);
machine_power_off();
}