1 #ifndef _BCACHE_CLOCK_TYPES_H
2 #define _BCACHE_CLOCK_TYPES_H
9 * Clocks/timers in units of sectors of IO:
11 * Note - they use percpu batching, so they're only approximate.
15 typedef void (*io_timer_fn)(struct io_timer *);
22 /* Amount to buffer up on a percpu counter */
23 #define IO_CLOCK_PCPU_SECTORS 128
27 u16 __percpu *pcpu_buf;
29 spinlock_t timer_lock;
30 DECLARE_HEAP(struct io_timer *, timers);
33 #endif /* _BCACHE_CLOCK_TYPES_H */