summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-12-08 16:08:10 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2014-01-19 21:55:28 +0100
commitd6dd15e4d6cd23c72fd7d7c9faa84d09d6ccc33b (patch)
treeae33e29e6dbf7a35f117b3f31d686c6a0785261c
parent8e221b0bb77cc3d85d16d7352770979ee99a7743 (diff)
backports: remove unused workqueue backports
Upstream commit: 185e78bad33c73f26b817b50ccf05b1ffac5d446 These backports are not used by any driver code and some of them are conflicting with code from RHEL 6.5 headers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r--backport/backport-include/linux/workqueue.h15
-rw-r--r--backport/compat/compat-2.6.36.c42
2 files changed, 0 insertions, 57 deletions
diff --git a/backport/backport-include/linux/workqueue.h b/backport/backport-include/linux/workqueue.h
index 1e9ca71c..19498768 100644
--- a/backport/backport-include/linux/workqueue.h
+++ b/backport/backport-include/linux/workqueue.h
@@ -75,27 +75,12 @@ void backport_system_workqueue_destroy(void);
#define schedule_work LINUX_BACKPORT(schedule_work)
int schedule_work(struct work_struct *work);
-#define schedule_work_on LINUX_BACKPORT(schedule_work_on)
-int schedule_work_on(int cpu, struct work_struct *work);
#define schedule_delayed_work LINUX_BACKPORT(schedule_delayed_work)
int schedule_delayed_work(struct delayed_work *dwork,
unsigned long delay);
-#define schedule_delayed_work_on LINUX_BACKPORT(schedule_delayed_work_on)
-int schedule_delayed_work_on(int cpu,
- struct delayed_work *dwork,
- unsigned long delay);
#define flush_scheduled_work LINUX_BACKPORT(flush_scheduled_work)
void flush_scheduled_work(void);
-enum {
- /* bit mask for work_busy() return values */
- WORK_BUSY_PENDING = 1 << 0,
- WORK_BUSY_RUNNING = 1 << 1,
-};
-
-#define work_busy LINUX_BACKPORT(work_busy)
-extern unsigned int work_busy(struct work_struct *work);
-
#else
static inline void backport_system_workqueue_create(void)
diff --git a/backport/compat/compat-2.6.36.c b/backport/compat/compat-2.6.36.c
index 331e9916..2c00bc78 100644
--- a/backport/compat/compat-2.6.36.c
+++ b/backport/compat/compat-2.6.36.c
@@ -85,16 +85,6 @@ int schedule_work(struct work_struct *work)
}
EXPORT_SYMBOL_GPL(schedule_work);
-int schedule_work_on(int cpu, struct work_struct *work)
-{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
- return queue_work_on(cpu, system_wq, work);
-#else
- return queue_work(system_wq, work);
-#endif
-}
-EXPORT_SYMBOL_GPL(schedule_work_on);
-
int schedule_delayed_work(struct delayed_work *dwork,
unsigned long delay)
{
@@ -102,14 +92,6 @@ int schedule_delayed_work(struct delayed_work *dwork,
}
EXPORT_SYMBOL_GPL(schedule_delayed_work);
-int schedule_delayed_work_on(int cpu,
- struct delayed_work *dwork,
- unsigned long delay)
-{
- return queue_delayed_work_on(cpu, system_wq, dwork, delay);
-}
-EXPORT_SYMBOL_GPL(schedule_delayed_work_on);
-
void flush_scheduled_work(void)
{
/*
@@ -122,30 +104,6 @@ void flush_scheduled_work(void)
}
EXPORT_SYMBOL_GPL(flush_scheduled_work);
-/**
- * work_busy - test whether a work is currently pending or running
- * @work: the work to be tested
- *
- * Test whether @work is currently pending or running. There is no
- * synchronization around this function and the test result is
- * unreliable and only useful as advisory hints or for debugging.
- * Especially for reentrant wqs, the pending state might hide the
- * running state.
- *
- * RETURNS:
- * OR'd bitmask of WORK_BUSY_* bits.
- */
-unsigned int work_busy(struct work_struct *work)
-{
- unsigned int ret = 0;
-
- if (work_pending(work))
- ret |= WORK_BUSY_PENDING;
-
- return ret;
-}
-EXPORT_SYMBOL_GPL(work_busy);
-
void backport_system_workqueue_create(void)
{
system_wq = alloc_workqueue("events", 0, 0);