mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
sched: Use swap() macro in scale_stime()
Simple cleanup. Reported-by: Peter Zijlstra <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]> Cc: Frederic Weisbecker <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
78becc2709
commit
84f9f3a156
1 changed files with 2 additions and 3 deletions
|
|
@ -515,9 +515,8 @@ static cputime_t scale_stime(u64 stime, u64 rtime, u64 total)
|
|||
|
||||
for (;;) {
|
||||
/* Make sure "rtime" is the bigger of stime/rtime */
|
||||
if (stime > rtime) {
|
||||
u64 tmp = rtime; rtime = stime; stime = tmp;
|
||||
}
|
||||
if (stime > rtime)
|
||||
swap(rtime, stime);
|
||||
|
||||
/* Make sure 'total' fits in 32 bits */
|
||||
if (total >> 32)
|
||||
|
|
|
|||
Loading…
Reference in a new issue