Lines Matching refs:ps_tsk_num
207 static unsigned int ps_tsk_num;
212 ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread,
213 (void *)(unsigned long)ps_tsk_num,
214 "acpi_pad/%d", ps_tsk_num);
216 if (IS_ERR(ps_tsks[ps_tsk_num])) {
217 rc = PTR_ERR(ps_tsks[ps_tsk_num]);
218 ps_tsks[ps_tsk_num] = NULL;
221 ps_tsk_num++;
229 if (ps_tsk_num > 0) {
230 ps_tsk_num--;
231 kthread_stop(ps_tsks[ps_tsk_num]);
232 ps_tsks[ps_tsk_num] = NULL;
238 if (num > ps_tsk_num) {
239 while (ps_tsk_num < num) {
243 } else if (num < ps_tsk_num) {
244 while (ps_tsk_num > num)
261 return ps_tsk_num;