Lines Matching refs:stopper

68 static void __cpu_stop_queue_work(struct cpu_stopper *stopper,  in __cpu_stop_queue_work()  argument
72 list_add_tail(&work->list, &stopper->works); in __cpu_stop_queue_work()
73 wake_q_add(wakeq, stopper->thread); in __cpu_stop_queue_work()
79 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_queue_work() local
85 raw_spin_lock_irqsave(&stopper->lock, flags); in cpu_stop_queue_work()
86 enabled = stopper->enabled; in cpu_stop_queue_work()
88 __cpu_stop_queue_work(stopper, work, &wakeq); in cpu_stop_queue_work()
91 raw_spin_unlock_irqrestore(&stopper->lock, flags); in cpu_stop_queue_work()
458 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_should_run() local
462 raw_spin_lock_irqsave(&stopper->lock, flags); in cpu_stop_should_run()
463 run = !list_empty(&stopper->works); in cpu_stop_should_run()
464 raw_spin_unlock_irqrestore(&stopper->lock, flags); in cpu_stop_should_run()
470 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stopper_thread() local
475 raw_spin_lock_irq(&stopper->lock); in cpu_stopper_thread()
476 if (!list_empty(&stopper->works)) { in cpu_stopper_thread()
477 work = list_first_entry(&stopper->works, in cpu_stopper_thread()
481 raw_spin_unlock_irq(&stopper->lock); in cpu_stopper_thread()
506 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in stop_machine_park() local
512 stopper->enabled = false; in stop_machine_park()
513 kthread_park(stopper->thread); in stop_machine_park()
525 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_park() local
527 WARN_ON(!list_empty(&stopper->works)); in cpu_stop_park()
532 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in stop_machine_unpark() local
534 stopper->enabled = true; in stop_machine_unpark()
535 kthread_unpark(stopper->thread); in stop_machine_unpark()
553 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_init() local
555 raw_spin_lock_init(&stopper->lock); in cpu_stop_init()
556 INIT_LIST_HEAD(&stopper->works); in cpu_stop_init()