Lines Matching refs:stopper

76 	struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu);  in cpu_stop_queue_work()  local
81 spin_lock_irqsave(&stopper->lock, flags); in cpu_stop_queue_work()
83 if (stopper->enabled) { in cpu_stop_queue_work()
84 list_add_tail(&work->list, &stopper->works); in cpu_stop_queue_work()
89 spin_unlock_irqrestore(&stopper->lock, flags); in cpu_stop_queue_work()
438 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_should_run() local
442 spin_lock_irqsave(&stopper->lock, flags); in cpu_stop_should_run()
443 run = !list_empty(&stopper->works); in cpu_stop_should_run()
444 spin_unlock_irqrestore(&stopper->lock, flags); in cpu_stop_should_run()
450 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stopper_thread() local
456 spin_lock_irq(&stopper->lock); in cpu_stopper_thread()
457 if (!list_empty(&stopper->works)) { in cpu_stopper_thread()
458 work = list_first_entry(&stopper->works, in cpu_stopper_thread()
462 spin_unlock_irq(&stopper->lock); in cpu_stopper_thread()
498 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_park() local
503 spin_lock_irqsave(&stopper->lock, flags); in cpu_stop_park()
504 list_for_each_entry(work, &stopper->works, list) in cpu_stop_park()
506 stopper->enabled = false; in cpu_stop_park()
507 spin_unlock_irqrestore(&stopper->lock, flags); in cpu_stop_park()
512 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_unpark() local
514 spin_lock_irq(&stopper->lock); in cpu_stop_unpark()
515 stopper->enabled = true; in cpu_stop_unpark()
516 spin_unlock_irq(&stopper->lock); in cpu_stop_unpark()
536 struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); in cpu_stop_init() local
538 spin_lock_init(&stopper->lock); in cpu_stop_init()
539 INIT_LIST_HEAD(&stopper->works); in cpu_stop_init()