mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 03:54:02 +00:00
[PATCH] UML: fix wall_to_monotonic initialization
Change a variable from unsigned to signed in order to get sign-extension when the thing is negated. Without this, uptime is horribly confused. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0dad31d2da
commit
7f98a44b9d
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void timer_irq(union uml_pt_regs *regs)
|
||||||
|
|
||||||
void time_init_kern(void)
|
void time_init_kern(void)
|
||||||
{
|
{
|
||||||
unsigned long long nsecs;
|
long long nsecs;
|
||||||
|
|
||||||
nsecs = os_nsecs();
|
nsecs = os_nsecs();
|
||||||
set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION,
|
set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION,
|
||||||
|
|
Loading…
Add table
Reference in a new issue