Treat jiffies as msec since boot
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 17:17:56 +0000 (12:17 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 17:19:59 +0000 (12:19 -0500)
commit2a991d3746702999c3a74c85aaef84d2cb2fe8b8
treefe575123a9ab274e16757a1449adbf35f131b327
parente3fe0f76a513e17e1a8e1b773ce3c1c7adc9e2f7
Treat jiffies as msec since boot

We had been treating jiffies as 0, and then using relative time in
mod_timer.  This is nasty, and breaks things that want to use jiffies for
other stuff, like mlx4 stats.

Instead, we'll pretend like we're a Linux machine with HZ = 1000 and a
jiffie being a millisecond.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/linux/compat_todo.h
kern/include/linux_compat.h