summaryrefslogtreecommitdiff
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-05-27 10:34:26 +0200
committerRichard Weinberger <richard@nod.at>2019-07-02 23:27:29 +0200
commitc7c6f3b95303c7de5d52af56c902fcb5abe827df (patch)
treee48fa523e8d88879b53967d660e0795d4df8e139 /arch/um/kernel
parentb00bdd3244005a3a911339b3f977e5fbb21d0879 (diff)
um: Pass nsecs to os timer functions
This makes the code clearer and lets the time travel patch have the actual time used for these functions in just one place. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index 3898119f773e..3a2fe54bef65 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -37,14 +37,14 @@ static int itimer_shutdown(struct clock_event_device *evt)
static int itimer_set_periodic(struct clock_event_device *evt)
{
- os_timer_set_interval();
+ os_timer_set_interval(NSEC_PER_SEC / HZ);
return 0;
}
static int itimer_next_event(unsigned long delta,
struct clock_event_device *evt)
{
- return os_timer_one_shot(delta);
+ return os_timer_one_shot(delta + 1);
}
static int itimer_one_shot(struct clock_event_device *evt)