removed event_restart_tx, as this is already handled in the device write hook

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7632 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2004-05-24 17:30:46 +00:00
parent 0865e4b204
commit a236b9c6a1
2 changed files with 4 additions and 12 deletions

View File

@ -783,10 +783,10 @@ em_intr(void *arg)
loop_cnt--; loop_cnt--;
} }
if (ifp->if_flags & IFF_RUNNING && ifp->if_snd.ifq_head != NULL) { // if (ifp->if_flags & IFF_RUNNING && ifp->if_snd.ifq_head != NULL) {
atomic_or(&adapter->event_flags, EVENT_RESTART_TX); // atomic_or(&adapter->event_flags, EVENT_RESTART_TX);
release_event_sem = true; // release_event_sem = true;
} // }
if (release_event_sem) if (release_event_sem)
release_sem_etc(adapter->event_sem, 1, B_DO_NOT_RESCHEDULE); release_sem_etc(adapter->event_sem, 1, B_DO_NOT_RESCHEDULE);
@ -816,13 +816,6 @@ event_handler(void *cookie)
adapter->timer_handle = timeout(em_local_timer, adapter, 2*hz); adapter->timer_handle = timeout(em_local_timer, adapter, 2*hz);
} }
if (events & EVENT_RESTART_TX) {
TRACE("EVENT_RESTART_TX\n");
PRINT("EVENT_RESTART_TX not implemented!\n");
// XXX not multithread save?
// if (ifp->if_flags & IFF_RUNNING && ifp->if_snd.ifq_head != NULL)
// em_start(ifp);
}
} }
} }

View File

@ -250,7 +250,6 @@ typedef struct _DESCRIPTOR_PAIR
// used by interrupt and event handling thread // used by interrupt and event handling thread
enum { enum {
EVENT_LINK_CHANGED = 0x01, EVENT_LINK_CHANGED = 0x01,
EVENT_RESTART_TX = 0x02,
}; };
/* Our adapter structure */ /* Our adapter structure */