Lines Matching refs:ps_tsk_num
215 static unsigned int ps_tsk_num; variable
220 ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread, in create_power_saving_task()
221 (void *)(unsigned long)ps_tsk_num, in create_power_saving_task()
222 "acpi_pad/%d", ps_tsk_num); in create_power_saving_task()
224 if (IS_ERR(ps_tsks[ps_tsk_num])) { in create_power_saving_task()
225 rc = PTR_ERR(ps_tsks[ps_tsk_num]); in create_power_saving_task()
226 ps_tsks[ps_tsk_num] = NULL; in create_power_saving_task()
229 ps_tsk_num++; in create_power_saving_task()
237 if (ps_tsk_num > 0) { in destroy_power_saving_task()
238 ps_tsk_num--; in destroy_power_saving_task()
239 kthread_stop(ps_tsks[ps_tsk_num]); in destroy_power_saving_task()
240 ps_tsks[ps_tsk_num] = NULL; in destroy_power_saving_task()
246 if (num > ps_tsk_num) { in set_power_saving_task_num()
247 while (ps_tsk_num < num) { in set_power_saving_task_num()
251 } else if (num < ps_tsk_num) { in set_power_saving_task_num()
252 while (ps_tsk_num > num) in set_power_saving_task_num()
269 return ps_tsk_num; in acpi_pad_idle_cpus_num()