X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftimer%2Ftimer.h;fp=ccan%2Ftimer%2Ftimer.h;h=65f849b3dccc22743ed958a6d36ddb04370c2b65;hb=996672df71a668d1ff7c650d0392c25250ab8dd8;hp=3bf28d0fbda2cdd8f4e3396bc19928d2b1ac7960;hpb=a40fc5a89e5336f405b84387d387c9f5a74e95fa;p=ccan diff --git a/ccan/timer/timer.h b/ccan/timer/timer.h index 3bf28d0f..65f849b3 100644 --- a/ccan/timer/timer.h +++ b/ccan/timer/timer.h @@ -5,10 +5,15 @@ #include #include +#ifndef TIMER_GRANULARITY /* We divide all nsec values by 1000, reducing it to usec granularity. */ #define TIMER_GRANULARITY 1000 -/* This gives 16 pointers per level, up to 13 levels deep. */ -#define TIMER_LEVEL_BITS 4 +#endif + +#ifndef TIMER_LEVEL_BITS +/* This gives 32 pointers per level, up to 13 levels deep. */ +#define TIMER_LEVEL_BITS 5 +#endif struct timers; struct timer;