16 #include <linux/hrtimer.h>
20 #include <linux/sched.h>
49 void (*handler)(
struct clock_event_device *),
52 newdev->event_handler =
handler;
63 struct clock_event_device *
dev = td->evtdev;
65 if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) ||
66 !tick_device_is_functional(dev)) {
69 "could not switch to one-shot mode:");
71 printk(
" no tick device\n");
73 if (!tick_device_is_functional(dev))
74 printk(
" %s is not functional.\n", dev->name);
76 printk(
" %s does not support one-shot mode.\n",
82 td->mode = TICKDEV_MODE_ONESHOT;
85 tick_broadcast_switch_to_oneshot();
106 #ifdef CONFIG_HIGH_RES_TIMERS
112 int tick_init_highres(
void)