alarmtimers: Add try_to_cancel functionality
[~shefty/rdma-dev.git] / include / linux / alarmtimer.h
index 304124a6c982a14b4b9467e571f526475c212979..975009e1cbe67b429ac5dd2459eba0f6e2e31435 100644 (file)
@@ -44,7 +44,8 @@ struct alarm {
 void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
                enum alarmtimer_restart (*function)(struct alarm *, ktime_t));
 void alarm_start(struct alarm *alarm, ktime_t start);
-void alarm_cancel(struct alarm *alarm);
+int alarm_try_to_cancel(struct alarm *alarm);
+int alarm_cancel(struct alarm *alarm);
 
 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);