diff options
Diffstat (limited to 'arch/um/kernel/time_kern.c')
| -rw-r--r-- | arch/um/kernel/time_kern.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/kernel/time_kern.c b/arch/um/kernel/time_kern.c index 528cf623f8b4..86f51d04c98d 100644 --- a/arch/um/kernel/time_kern.c +++ b/arch/um/kernel/time_kern.c | |||
| @@ -84,6 +84,16 @@ void timer_irq(union uml_pt_regs *regs) | |||
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | |||
| 88 | void time_init_kern(void) | ||
| 89 | { | ||
| 90 | unsigned long long nsecs; | ||
| 91 | |||
| 92 | nsecs = os_nsecs(); | ||
| 93 | set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION, | ||
| 94 | -nsecs % BILLION); | ||
| 95 | } | ||
| 96 | |||
| 87 | void do_boot_timer_handler(struct sigcontext * sc) | 97 | void do_boot_timer_handler(struct sigcontext * sc) |
| 88 | { | 98 | { |
| 89 | struct pt_regs regs; | 99 | struct pt_regs regs; |
