From 51ca2ae6856e9edb81100fa9b3deb51eee8c9f73 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Sat, 4 May 2013 11:57:00 +0200 Subject: Use do_div() for integer division in litmus/sync.c Breaks without do_div() on ARM. --- litmus/sync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'litmus') diff --git a/litmus/sync.c b/litmus/sync.c index 88a050e10ee7..8ff5b9e298eb 100644 --- a/litmus/sync.c +++ b/litmus/sync.c @@ -152,7 +152,9 @@ asmlinkage long sys_release_ts(lt_t __user *__delay) ret = copy_from_user(&delay, __delay, sizeof(delay)); if (ret == 0) { /* round up to next larger integral millisecond */ - start_time = ((litmus_clock() / ONE_MS) + 1) * ONE_MS; + start_time = litmus_clock(); + do_div(start_time, ONE_MS); + start_time *= ONE_MS; ret = do_release_ts(start_time + delay); } -- cgit v1.2.2