diff options
Diffstat (limited to 'kernel/sched/cputime.c')
-rw-r--r-- | kernel/sched/cputime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index cc2dc3eea8a3..94691bcd7364 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c | |||
@@ -515,9 +515,8 @@ static cputime_t scale_stime(u64 stime, u64 rtime, u64 total) | |||
515 | 515 | ||
516 | for (;;) { | 516 | for (;;) { |
517 | /* Make sure "rtime" is the bigger of stime/rtime */ | 517 | /* Make sure "rtime" is the bigger of stime/rtime */ |
518 | if (stime > rtime) { | 518 | if (stime > rtime) |
519 | u64 tmp = rtime; rtime = stime; stime = tmp; | 519 | swap(rtime, stime); |
520 | } | ||
521 | 520 | ||
522 | /* Make sure 'total' fits in 32 bits */ | 521 | /* Make sure 'total' fits in 32 bits */ |
523 | if (total >> 32) | 522 | if (total >> 32) |