]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - kernel/sched_stats.h
[S390] cputime: add sparse checking and cleanup
[mirror_ubuntu-zesty-kernel.git] / kernel / sched_stats.h
index 87f9e36ea56ef5b337150be441bb8c36f24ae048..4b71dbef271df9ca8d70fbebe653b234ed3ce197 100644 (file)
@@ -283,8 +283,7 @@ static inline void account_group_user_time(struct task_struct *tsk,
                return;
 
        raw_spin_lock(&cputimer->lock);
-       cputimer->cputime.utime =
-               cputime_add(cputimer->cputime.utime, cputime);
+       cputimer->cputime.utime += cputime;
        raw_spin_unlock(&cputimer->lock);
 }
 
@@ -307,8 +306,7 @@ static inline void account_group_system_time(struct task_struct *tsk,
                return;
 
        raw_spin_lock(&cputimer->lock);
-       cputimer->cputime.stime =
-               cputime_add(cputimer->cputime.stime, cputime);
+       cputimer->cputime.stime += cputime;
        raw_spin_unlock(&cputimer->lock);
 }