static int __cpuinit shx3_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { unsigned int cpu = (unsigned int)hcpu; switch (action) { case CPU_UP_PREPARE: shx3_update_boot_vector(cpu); break; case CPU_ONLINE: pr_info("CPU %u is now online\n", cpu); break; case CPU_DEAD: break; } return NOTIFY_OK; }
static int shx3_cpu_prepare(unsigned int cpu) { shx3_update_boot_vector(cpu); return 0; }