Lines Matching refs:ps_tsk_num
218 static unsigned int ps_tsk_num; variable
223 ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread, in create_power_saving_task()
224 (void *)(unsigned long)ps_tsk_num, in create_power_saving_task()
225 "acpi_pad/%d", ps_tsk_num); in create_power_saving_task()
227 if (IS_ERR(ps_tsks[ps_tsk_num])) { in create_power_saving_task()
228 rc = PTR_ERR(ps_tsks[ps_tsk_num]); in create_power_saving_task()
229 ps_tsks[ps_tsk_num] = NULL; in create_power_saving_task()
232 ps_tsk_num++; in create_power_saving_task()
240 if (ps_tsk_num > 0) { in destroy_power_saving_task()
241 ps_tsk_num--; in destroy_power_saving_task()
242 kthread_stop(ps_tsks[ps_tsk_num]); in destroy_power_saving_task()
243 ps_tsks[ps_tsk_num] = NULL; in destroy_power_saving_task()
249 if (num > ps_tsk_num) { in set_power_saving_task_num()
250 while (ps_tsk_num < num) { in set_power_saving_task_num()
254 } else if (num < ps_tsk_num) { in set_power_saving_task_num()
255 while (ps_tsk_num > num) in set_power_saving_task_num()
272 return ps_tsk_num; in acpi_pad_idle_cpus_num()