Lines Matching refs:cpu
60 int _debug_hotplug_cpu(int cpu, int action) in _debug_hotplug_cpu() argument
62 struct device *dev = get_cpu_device(cpu); in _debug_hotplug_cpu()
65 if (!cpu_is_hotpluggable(cpu)) in _debug_hotplug_cpu()
72 ret = cpu_down(cpu); in _debug_hotplug_cpu()
74 pr_info("CPU %u is now offline\n", cpu); in _debug_hotplug_cpu()
78 pr_debug("Can't offline CPU%d.\n", cpu); in _debug_hotplug_cpu()
81 ret = cpu_up(cpu); in _debug_hotplug_cpu()
86 pr_debug("Can't online CPU%d.\n", cpu); in _debug_hotplug_cpu()
140 per_cpu(cpu_devices, num).cpu.hotpluggable = 1; in arch_register_cpu()
142 return register_cpu(&per_cpu(cpu_devices, num).cpu, num); in arch_register_cpu()
148 unregister_cpu(&per_cpu(cpu_devices, num).cpu); in arch_unregister_cpu()
155 return register_cpu(&per_cpu(cpu_devices, num).cpu, num); in arch_register_cpu()