the add_timer() function does panic, also it would call the hook in interrupt context, both it not acceptable. Commented it out

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7392 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2004-05-03 23:05:14 +00:00
parent f8ce319207
commit b8708997c5
2 changed files with 11 additions and 2 deletions

View File

@ -57,7 +57,7 @@ timeout(timeout_func func, void *cookie, bigtime_t timeout)
h.func = func;
h.cookie = cookie;
add_timer(&h.t, timer_dispatch_hook, timeout, B_ONE_SHOT_RELATIVE_TIMER);
// add_timer(&h.t, timer_dispatch_hook, timeout, B_ONE_SHOT_RELATIVE_TIMER);
return h;
}
@ -65,7 +65,7 @@ timeout(timeout_func func, void *cookie, bigtime_t timeout)
void
untimeout(timeout_func func, void *cookie, struct callout_handle handle)
{
cancel_timer(&handle.t);
// cancel_timer(&handle.t);
}
struct resource *

View File

@ -221,6 +221,15 @@ void driver_free(void *p, int p2);
#define E1000_WRITE_REG_ARRAY(hw, reg, index, value) \
E1000_WRITE_OFFSET(hw, E1000_REG_OFFSET(hw, reg) + ((index) << 2), value)
/*
#define TAILQ_FIRST(head) ((head)->tqh_first)
#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
#define TAILQ_FOREACH(var, head, field) \
for ((var) = TAILQ_FIRST((head)); \
(var); \
(var) = TAILQ_NEXT((var), field))
*/
// used only for multicast setup, fix later...
#define TAILQ_FOREACH(a, b, c) for (a = 0; a != 0; a = 0)