• Home
  • Raw
  • Download

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()
487 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_should_run() local
491 raw_spin_lock_irqsave(&stopper->lock, flags); in cpu_stop_should_run()
492 run = !list_empty(&stopper->works); in cpu_stop_should_run()
493 raw_spin_unlock_irqrestore(&stopper->lock, flags); in cpu_stop_should_run()
499 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stopper_thread() local
504 raw_spin_lock_irq(&stopper->lock); in cpu_stopper_thread()
505 if (!list_empty(&stopper->works)) { in cpu_stopper_thread()
506 work = list_first_entry(&stopper->works, in cpu_stopper_thread()
510 raw_spin_unlock_irq(&stopper->lock); in cpu_stopper_thread()
535 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in stop_machine_park() local
541 stopper->enabled = false; in stop_machine_park()
542 kthread_park(stopper->thread); in stop_machine_park()
554 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_park() local
556 WARN_ON(!list_empty(&stopper->works)); in cpu_stop_park()
561 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in stop_machine_unpark() local
563 stopper->enabled = true; in stop_machine_unpark()
564 kthread_unpark(stopper->thread); in stop_machine_unpark()
582 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_init() local
584 raw_spin_lock_init(&stopper->lock); in cpu_stop_init()
585 INIT_LIST_HEAD(&stopper->works); in cpu_stop_init()