Free memory from afs_events
[openafs.git] / src / afs / LINUX / osi_sleep.c
index d9e2967..54885e6 100644 (file)
@@ -67,35 +67,10 @@ afs_osi_Wait(afs_int32 ams, struct afs_osi_WaitHandle *ahandle, int aintok)
     return code;
 }
 
-typedef struct afs_event {
-    struct afs_event *next;    /* next in hash chain */
-    char *event;               /* lwp event: an address */
-    int refcount;              /* Is it in use? */
-    int seq;                   /* Sequence number: this is incremented
-                                * by wakeup calls; wait will not return until
-                                * it changes */
-    wait_queue_head_t cond;
-} afs_event_t;
-
-#define HASHSIZE 128
-afs_event_t *afs_evhasht[HASHSIZE];    /* Hash table for events */
-#define afs_evhash(event)      (afs_uint32) ((((long)event)>>2) & (HASHSIZE-1));
+afs_event_t *afs_evhasht[AFS_EVHASHSIZE];      /* Hash table for events */
+#define afs_evhash(event)      (afs_uint32) ((((long)event)>>2) & (AFS_EVHASHSIZE-1));
 int afs_evhashcnt = 0;
 
-void
-osi_event_shutdown(void)
-{
-   int i;
-
-   for (i=0;i<HASHSIZE;i++) {
-       while (afs_evhasht[i] != NULL) {
-           afs_event_t *tmp = afs_evhasht[i];
-           afs_evhasht[i] = tmp->next;
-           kfree(tmp);
-       }
-   }
-}
-
 /* Get and initialize event structure corresponding to lwp event (i.e. address)
  * */
 static afs_event_t *