mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] time_adjust cleared before use
I notice that the code which implements adjtime clears the time_adjust value before using it. The attached patch makes the obvious fix. Acked-by: Roman Zippel <[email protected]> Signed-off-by: Jim Houston <[email protected]> Cc: John Stultz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
eba6cd6714
commit
bb1d860551
1 changed files with 1 additions and 1 deletions
|
|
@ -161,9 +161,9 @@ void second_overflow(void)
|
|||
time_adjust += MAX_TICKADJ;
|
||||
tick_length -= MAX_TICKADJ_SCALED;
|
||||
} else {
|
||||
time_adjust = 0;
|
||||
tick_length += (s64)(time_adjust * NSEC_PER_USEC /
|
||||
HZ) << TICK_LENGTH_SHIFT;
|
||||
time_adjust = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue