diff options
Diffstat (limited to 'kernel/sched/cputime.c')
-rw-r--r-- | kernel/sched/cputime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 99947919e30b..58624a65f124 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c | |||
@@ -142,7 +142,7 @@ void account_user_time(struct task_struct *p, cputime_t cputime, | |||
142 | p->utimescaled += cputime_scaled; | 142 | p->utimescaled += cputime_scaled; |
143 | account_group_user_time(p, cputime); | 143 | account_group_user_time(p, cputime); |
144 | 144 | ||
145 | index = (TASK_NICE(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; | 145 | index = (task_nice(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; |
146 | 146 | ||
147 | /* Add user time to cpustat. */ | 147 | /* Add user time to cpustat. */ |
148 | task_group_account_field(p, index, (__force u64) cputime); | 148 | task_group_account_field(p, index, (__force u64) cputime); |
@@ -169,7 +169,7 @@ static void account_guest_time(struct task_struct *p, cputime_t cputime, | |||
169 | p->gtime += cputime; | 169 | p->gtime += cputime; |
170 | 170 | ||
171 | /* Add guest time to cpustat. */ | 171 | /* Add guest time to cpustat. */ |
172 | if (TASK_NICE(p) > 0) { | 172 | if (task_nice(p) > 0) { |
173 | cpustat[CPUTIME_NICE] += (__force u64) cputime; | 173 | cpustat[CPUTIME_NICE] += (__force u64) cputime; |
174 | cpustat[CPUTIME_GUEST_NICE] += (__force u64) cputime; | 174 | cpustat[CPUTIME_GUEST_NICE] += (__force u64) cputime; |
175 | } else { | 175 | } else { |