bcm_send_to_user(op, &head, data, 1);
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
-/* TODO: move to linux/hrtimer.h */
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,25)
+/* is part of linux/hrtimer.h since 2.6.26 */
static inline int hrtimer_callback_running(struct hrtimer *timer)
{
return timer->state & HRTIMER_STATE_CALLBACK;
#define __dev_get_by_index(ns, ifindex) __dev_get_by_index(ifindex)
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
+#include <linux/hrtimer.h>
+static inline int hrtimer_callback_running(struct hrtimer *timer)
+{
+ return timer->state & HRTIMER_STATE_CALLBACK;
+}
+#endif
#endif