From e1725069d22f67f074d21e34680e3dfa970e5528 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 11 Dec 2008 20:19:18 +0000 Subject: dahdi_dummy: If we're using the system tick, don't use the hrtimer interface. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5497 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi_dummy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/dahdi/dahdi_dummy.c') diff --git a/drivers/dahdi/dahdi_dummy.c b/drivers/dahdi/dahdi_dummy.c index 9fcc728..a3d12ac 100644 --- a/drivers/dahdi/dahdi_dummy.c +++ b/drivers/dahdi/dahdi_dummy.c @@ -220,8 +220,7 @@ static enum hrtimer_restart dahdi_dummy_hr_int(struct hrtimer *htmr) /* use kernel system tick timer if PC architecture RTC is not available */ static void dahdi_dummy_timer(unsigned long param) { - hrtimer_set_expires(timer, jiffies + 1); - add_timer(&timer); + mod_timer(&timer, jiffies + 1); ztd->counter += DAHDI_TIME; while (ztd->counter >= HZ) { -- cgit v1.2.3