Lines Matching refs:ps_tsk_num
216 static unsigned int ps_tsk_num;
221 ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread,
222 (void *)(unsigned long)ps_tsk_num,
223 "acpi_pad/%d", ps_tsk_num);
225 if (IS_ERR(ps_tsks[ps_tsk_num])) {
226 rc = PTR_ERR(ps_tsks[ps_tsk_num]);
227 ps_tsks[ps_tsk_num] = NULL;
230 ps_tsk_num++;
238 if (ps_tsk_num > 0) {
239 ps_tsk_num--;
240 kthread_stop(ps_tsks[ps_tsk_num]);
241 ps_tsks[ps_tsk_num] = NULL;
247 if (num > ps_tsk_num) {
248 while (ps_tsk_num < num) {
252 } else if (num < ps_tsk_num) {
253 while (ps_tsk_num > num)
270 return ps_tsk_num;