• Home
  • Raw
  • Download

Lines Matching refs:cpu

93 static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work)  in cpu_stop_queue_work()  argument
95 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_queue_work()
139 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
145 if (!cpu_stop_queue_work(cpu, &work)) in stop_one_cpu()
208 int cpu = smp_processor_id(), err = 0; in multi_cpu_stop() local
221 is_active = cpu == cpumask_first(cpumask); in multi_cpu_stop()
224 is_active = cpumask_test_cpu(cpu, cpumask); in multi_cpu_stop()
385 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
389 return cpu_stop_queue_work(cpu, work_buf); in stop_one_cpu_nowait()
398 unsigned int cpu; in queue_stop_cpus_work() local
409 for_each_cpu(cpu, cpumask) { in queue_stop_cpus_work()
410 work = &per_cpu(cpu_stopper.stop_work, cpu); in queue_stop_cpus_work()
415 if (cpu_stop_queue_work(cpu, work)) in queue_stop_cpus_work()
476 static int cpu_stop_should_run(unsigned int cpu) in cpu_stop_should_run() argument
478 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_should_run()
488 static void cpu_stopper_thread(unsigned int cpu) in cpu_stopper_thread() argument
490 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stopper_thread()
528 void stop_machine_park(int cpu) in stop_machine_park() argument
530 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in stop_machine_park()
540 extern void sched_set_stop_task(int cpu, struct task_struct *stop);
542 static void cpu_stop_create(unsigned int cpu) in cpu_stop_create() argument
544 sched_set_stop_task(cpu, per_cpu(cpu_stopper.thread, cpu)); in cpu_stop_create()
547 static void cpu_stop_park(unsigned int cpu) in cpu_stop_park() argument
549 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_park()
554 void stop_machine_unpark(int cpu) in stop_machine_unpark() argument
556 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in stop_machine_unpark()
574 unsigned int cpu; in cpu_stop_init() local
576 for_each_possible_cpu(cpu) { in cpu_stop_init()
577 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_init()