Change #alarm cancel method
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 12 Apr 2016 22:13:42 +0000 (18:13 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 Apr 2016 14:29:13 +0000 (10:29 -0400)
commit36ae6dffbeb0e8c7a98843012a4cff22546bdfb4
tree343475161e43f7581044f0e5aeecf158ea8dae9c
parent4cd3fb4a151403556d196aeebb26dd35de813bb2
Change #alarm cancel method

Writing into a ctl is convenient, but its hard to get the status back out.
When you read ctl, you get the directory ID, not actual status.  We could
have a status variable that you parse, but that's a pain.

It's simpler to just have 0 > Qtimer mean "turn off the alarm".  That's
what this commit does, as well as removing the "cancel" command from Qctl.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/alarm.c
tests/alarm.c
user/benchutil/alarm.c
user/benchutil/include/benchutil/alarm.h
user/benchutil/pvcalarm.c