projects
/
cascardo
/
kernel
/
samples
/
workqueue
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edd59c0
)
Reschedule delayed work.
author
Thadeu Lima de Souza Cascardo
<cascardo@holoscopio.com>
Sat, 5 Dec 2009 14:30:15 +0000
(12:30 -0200)
committer
Thadeu Lima de Souza Cascardo
<cascardo@holoscopio.com>
Sat, 5 Dec 2009 14:30:15 +0000
(12:30 -0200)
wq.c
patch
|
blob
|
history
diff --git
a/wq.c
b/wq.c
index
1d5fe38
..
e53c5f3
100644
(file)
--- a/
wq.c
+++ b/
wq.c
@@
-23,13
+23,15
@@
MODULE_LICENSE("GPL");
+static struct workqueue_struct *mywq;
+
static void do_mywork(struct work_struct *data)
{
printk(KERN_INFO "I've been scheduled.\n");
+ queue_delayed_work(mywq, to_delayed_work(data), 8 * HZ);
}
DECLARE_DELAYED_WORK(mywork, do_mywork);
-static struct workqueue_struct *mywq;
static int mywq_init(void)
{