Changeset 125 for GPL/trunk/lib32/task.c


Ignore:
Timestamp:
Jun 10, 2007, 10:14:08 AM (18 years ago)
Author:
Brendan Oakley
Message:

Added some tasklet code to correct type mismatches with task queues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/task.c

    r32 r125  
    2727#include <linux/fs.h>
    2828#include <linux/tqueue.h>
     29#include <linux/interrupt.h>
    2930#define LINUX
    3031#include <ossdefos2.h>
     
    3334struct task_struct *current = &current_task;
    3435
    35 void tasklet_hi_schedule(struct tq_struct *t)
     36void tasklet_hi_schedule(struct tasklet_struct *t)
    3637{
    37   if(t && t->routine) {
    38         t->routine(t->data);
     38  if(t && t->func) {
     39        t->func(t->data);
    3940  }
     41}
     42
     43void tasklet_init(struct tasklet_struct *t,
     44                  void (*func)(unsigned long), unsigned long data)
     45{
     46        t->next = NULL;
     47        t->state = 0;
     48        t->func = func;
     49        t->data = data;
    4050}
    4151
Note: See TracChangeset for help on using the changeset viewer.