diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index c1da757a97b0..7bf50dcc6d53 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -2355,8 +2355,7 @@ static int do_sysinfo(struct sysinfo *info) | |||
2355 | 2355 | ||
2356 | memset(info, 0, sizeof(struct sysinfo)); | 2356 | memset(info, 0, sizeof(struct sysinfo)); |
2357 | 2357 | ||
2358 | ktime_get_ts(&tp); | 2358 | get_monotonic_boottime(&tp); |
2359 | monotonic_to_bootbased(&tp); | ||
2360 | info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); | 2359 | info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0); |
2361 | 2360 | ||
2362 | get_avenrun(info->loads, 0, SI_LOAD_SHIFT - FSHIFT); | 2361 | get_avenrun(info->loads, 0, SI_LOAD_SHIFT - FSHIFT); |