Home
last modified time | relevance | path

Searched refs:num_active_cpus (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/leds/trigger/
H A Dledtrig-cpu.c42 static atomic_t num_active_cpus = ATOMIC_INIT(0); variable
82 atomic_add(is_active ? 1 : -1, &num_active_cpus); in ledtrig_cpu()
83 active_cpus = atomic_read(&num_active_cpus); in ledtrig_cpu()
/openbmc/linux/kernel/
H A Dstop_machine.c687 msdata.num_threads = num_active_cpus() + 1; /* +1 for local */ in stop_machine_from_inactive_cpu()
695 cpu_stop_init_done(&done, num_active_cpus()); in stop_machine_from_inactive_cpu()
/openbmc/linux/include/linux/
H A Dcpumask.h1078 #define num_active_cpus() cpumask_weight(cpu_active_mask) macro
1110 #define num_active_cpus() 1U macro