Lines Matching refs:cpu

46 static void run_sleep_cpu(unsigned int cpu);
47 static void run_wakeup_cpu(unsigned int cpu);
363 void arch_send_call_function_single_ipi(int cpu) in arch_send_call_function_single_ipi() argument
365 send_IPI_mask(cpumask_of(cpu), CALL_FUNC_SINGLE_IPI); in arch_send_call_function_single_ipi()
372 void smp_send_reschedule(int cpu) in smp_send_reschedule() argument
374 send_IPI_mask(cpumask_of(cpu), RESCHEDULE_IPI); in smp_send_reschedule()
725 static void __init smp_store_cpu_info(int cpu) in smp_store_cpu_info() argument
727 struct mn10300_cpuinfo *ci = &cpu_data[cpu]; in smp_store_cpu_info()
773 task_thread_info(idle)->cpu = cpu_id; in do_boot_cpu()
821 static void __init smp_show_cpu_info(int cpu) in smp_show_cpu_info() argument
823 struct mn10300_cpuinfo *ci = &cpu_data[cpu]; in smp_show_cpu_info()
827 cpu, in smp_show_cpu_info()
840 int cpu; in smp_callin() local
842 cpu = smp_processor_id(); in smp_callin()
845 if (cpumask_test_cpu(cpu, &cpu_callin_map)) { in smp_callin()
846 printk(KERN_ERR "CPU#%d already present.\n", cpu); in smp_callin()
849 Dprintk("CPU#%d waiting for CALLOUT\n", cpu); in smp_callin()
853 if (cpumask_test_cpu(cpu, &cpu_callout_map)) in smp_callin()
861 cpu); in smp_callin()
870 smp_store_cpu_info(cpu); in smp_callin()
873 cpumask_set_cpu(cpu, &cpu_callin_map); in smp_callin()
881 int cpu; in smp_online() local
883 cpu = smp_processor_id(); in smp_online()
885 notify_cpu_starting(cpu); in smp_online()
887 set_cpu_online(cpu, true); in smp_online()
912 current_thread_info()->cpu = 0; in smp_prepare_boot_cpu()
933 int __cpu_up(unsigned int cpu, struct task_struct *tidle) in __cpu_up() argument
938 if (sleep_mode[cpu]) in __cpu_up()
939 run_wakeup_cpu(cpu); in __cpu_up()
942 cpumask_set_cpu(cpu, &smp_commenced_mask); in __cpu_up()
946 if (cpu_online(cpu)) in __cpu_up()
951 BUG_ON(!cpu_online(cpu)); in __cpu_up()
972 static DEFINE_PER_CPU(struct cpu, cpu_devices);
976 int cpu, ret; in topology_init() local
978 for_each_cpu(cpu) { in topology_init()
979 ret = register_cpu(&per_cpu(cpu_devices, cpu), cpu, NULL); in topology_init()
983 cpu, ret); in topology_init()
992 int cpu = smp_processor_id(); in __cpu_disable() local
993 if (cpu == 0) in __cpu_disable()
997 cpumask_clear_cpu(cpu, &mm_cpumask(current->active_mm)); in __cpu_disable()
1001 void __cpu_die(unsigned int cpu) in __cpu_die() argument
1003 run_sleep_cpu(cpu); in __cpu_die()
1114 unsigned int cpu = smp_processor_id(); in restart_wakeup_cpu() local
1116 cpumask_set_cpu(cpu, &cpu_callin_map); in restart_wakeup_cpu()
1118 set_cpu_online(cpu, true); in restart_wakeup_cpu()
1146 static void run_sleep_cpu(unsigned int cpu) in run_sleep_cpu() argument
1151 cpumask_copy(&cpumask, &cpumask_of(cpu)); in run_sleep_cpu()
1167 static void run_wakeup_cpu(unsigned int cpu) in run_wakeup_cpu() argument
1181 hotplug_cpu_nmi_call_function(cpumask_of(cpu), wakeup_cpu, NULL, 1); in run_wakeup_cpu()