Changeset 125 for GPL/trunk/alsa-kernel/include
- Timestamp:
- Jun 10, 2007, 10:14:08 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/compat_22.h
r118 r125 380 380 #define up_write(x) up(x) 381 381 382 /* this is identical with tq_struct but the "routine" field is renamed to "func" */383 struct tasklet_struct {384 struct tasklet_struct *next; /* linked list of active bh's */385 unsigned long sync; /* must be initialized to zero */386 void (*func)(void *); /* function to call */387 void *data; /* argument to function */388 };389 390 #define tasklet_init(t,f,d) do { \391 (t)->next = NULL; \392 (t)->sync = 0; \393 (t)->func = (void (*)(void *))(f); \394 (t)->data = (void *)(d); \395 } while (0)396 397 382 #define tasklet_unlock_wait(t) while (test_bit(0, &(t)->sync)) { } 398 383 #define tasklet_kill(t) tasklet_unlock_wait(t) /* FIXME: world is not perfect... */
Note:
See TracChangeset
for help on using the changeset viewer.