Commit 4f9d90c4 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] remove tqueue.h from sched.h

This is actually part of the work I've been doing to remove BHs, but it
stands by itself.
parent 30724dcd
...@@ -252,6 +252,7 @@ ...@@ -252,6 +252,7 @@
#include <linux/poll.h> #include <linux/poll.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/tqueue.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/tqueue.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <pcmcia/ss.h> #include <pcmcia/ss.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/tqueue.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -7,7 +7,6 @@ extern unsigned long event; ...@@ -7,7 +7,6 @@ extern unsigned long event;
#include <linux/config.h> #include <linux/config.h>
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/tqueue.h>
#include <linux/threads.h> #include <linux/threads.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
...@@ -160,7 +159,6 @@ extern unsigned long cache_decay_ticks; ...@@ -160,7 +159,6 @@ extern unsigned long cache_decay_ticks;
extern signed long FASTCALL(schedule_timeout(signed long timeout)); extern signed long FASTCALL(schedule_timeout(signed long timeout));
asmlinkage void schedule(void); asmlinkage void schedule(void);
extern int schedule_task(struct tq_struct *task);
extern void flush_scheduled_tasks(void); extern void flush_scheduled_tasks(void);
extern int start_context_thread(void); extern int start_context_thread(void);
extern int current_is_keventd(void); extern int current_is_keventd(void);
......
...@@ -110,6 +110,9 @@ static inline int queue_task(struct tq_struct *bh_pointer, task_queue *bh_list) ...@@ -110,6 +110,9 @@ static inline int queue_task(struct tq_struct *bh_pointer, task_queue *bh_list)
return ret; return ret;
} }
/* Schedule a tq to run in process context */
extern int schedule_task(struct tq_struct *task);
/* /*
* Call all "bottom halfs" on a given list. * Call all "bottom halfs" on a given list.
*/ */
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/unistd.h> #include <linux/unistd.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/tqueue.h>
static DECLARE_TASK_QUEUE(tq_context); static DECLARE_TASK_QUEUE(tq_context);
static DECLARE_WAIT_QUEUE_HEAD(context_task_wq); static DECLARE_WAIT_QUEUE_HEAD(context_task_wq);
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/namespace.h> #include <linux/namespace.h>
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/tqueue.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/highuid.h> #include <linux/highuid.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/tqueue.h>
#include <linux/device.h> #include <linux/device.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/tqueue.h>
#include <linux/kernel_stat.h> #include <linux/kernel_stat.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment