X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Ftimer%2Fmain.c;h=3bee864d123a4f595b36be16296e03ac34435daa;hb=e987449c9fce2ec6210be3d8bad680d08d68c9dc;hp=22652a25503ed87e65fa3de91d16c442fd6204b0;hpb=3778059a51fcbc6b989ca7503a3ff89f6945ddd2;p=dpdk.git diff --git a/examples/timer/main.c b/examples/timer/main.c index 22652a2550..3bee864d12 100644 --- a/examples/timer/main.c +++ b/examples/timer/main.c @@ -84,7 +84,7 @@ timer1_cb(__attribute__((unused)) struct rte_timer *tim, printf("%s() on lcore %u\n", __func__, lcore_id); /* reload it on another lcore */ - hz = rte_get_hpet_hz(); + hz = rte_get_timer_hz(); lcore_id = rte_get_next_lcore(lcore_id, 0, 1); rte_timer_reset(tim, hz/3, SINGLE, lcore_id, timer1_cb, NULL); } @@ -135,7 +135,7 @@ MAIN(int argc, char **argv) rte_timer_init(&timer1); /* load timer0, every second, on master lcore, reloaded automatically */ - hz = rte_get_hpet_hz(); + hz = rte_get_timer_hz(); lcore_id = rte_lcore_id(); rte_timer_reset(&timer0, hz, PERIODICAL, lcore_id, timer0_cb, NULL);