Lines Matching defs:hrtimer
17 #include <linux/hrtimer.h>
56 unsigned long hrtimer; /* ms */
68 /* hrtimer control */
70 struct hrtimer hrtimer;
156 static enum hrtimer_restart ot_hrtimer_handler(struct hrtimer *hrt)
158 struct ot_item *item = container_of(hrt, struct ot_item, hrtimer);
173 if (!item->test->hrtimer)
175 hrtimer_start(&item->hrtimer, item->hrtcycle, HRTIMER_MODE_REL);
180 if (!item->test->hrtimer)
182 hrtimer_cancel(&item->hrtimer);
185 static int ot_init_hrtimer(struct ot_item *item, unsigned long hrtimer)
187 struct hrtimer *hrt = &item->hrtimer;
189 if (!hrtimer)
192 item->hrtcycle = ktime_set(0, hrtimer * 1000000UL);
212 /* initialize hrtimer */
213 ot_init_hrtimer(item, item->test->hrtimer);
628 * hrtimer: unsigned long, hrtimer intervnal in ms
641 /* sync & hrtimer */
642 {0, 0, NODE_COMPACT, 1000, 0, 1, 1, 4, "sync & hrtimer: percpu objpool"},
643 {0, 0, NODE_VMALLOC, 1000, 0, 1, 1, 4, "sync & hrtimer: percpu objpool from vmalloc"},
653 /* async + hrtimer mode */
654 {1, 0, NODE_COMPACT, 1000, 0, 4, 4, 4, "async & hrtimer: percpu objpool"},
655 {1, 0, NODE_VMALLOC, 1000, 0, 4, 4, 4, "async & hrtimer: percpu objpool from vmalloc"},