]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - kernel/posix-cpu-timers.c
rlimits: add task_struct to update_rlimit_cpu
[mv-sheeva.git] / kernel / posix-cpu-timers.c
index 9829646d399c5bf0304aa863f78f6f43ae1e4d5e..0513900995cebfeb8d2cabf1d2b57591d31999c4 100644 (file)
  * siglock protection since other code may update expiration cache as
  * well.
  */
-void update_rlimit_cpu(unsigned long rlim_new)
+void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new)
 {
        cputime_t cputime = secs_to_cputime(rlim_new);
 
-       spin_lock_irq(&current->sighand->siglock);
-       set_process_cpu_timer(current, CPUCLOCK_PROF, &cputime, NULL);
-       spin_unlock_irq(&current->sighand->siglock);
+       spin_lock_irq(&task->sighand->siglock);
+       set_process_cpu_timer(task, CPUCLOCK_PROF, &cputime, NULL);
+       spin_unlock_irq(&task->sighand->siglock);
 }
 
 static int check_clock(const clockid_t which_clock)