projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9970937
)
Documentation/connector/cn_test.c: don't use gfp_any()
author
Andrew Morton
<
[email protected]
>
Fri, 13 Feb 2009 00:47:01 +0000
(16:47 -0800)
committer
David S. Miller
<
[email protected]
>
Fri, 13 Feb 2009 00:47:01 +0000
(16:47 -0800)
cn_test_timer_func() is a timer handler and can never use GFP_KERNEL -
there's no point in using gfp_any() here.
Also, use setup_timer().
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
Documentation/connector/cn_test.c
patch
|
blob
|
history
diff --git
a/Documentation/connector/cn_test.c
b/Documentation/connector/cn_test.c
index be7af146dd304d614f6baf7a7d0a82324bf643c2..6977c178729afcd192fd7b90bbdf768fbd5eabed 100644
(file)
--- a/
Documentation/connector/cn_test.c
+++ b/
Documentation/connector/cn_test.c
@@
-137,7
+137,7
@@
static void cn_test_timer_func(unsigned long __data)
memcpy(m + 1, data, m->len);
- cn_netlink_send(m, 0,
gfp_any()
);
+ cn_netlink_send(m, 0,
GFP_ATOMIC
);
kfree(m);
}
@@
-160,10
+160,8
@@
static int cn_test_init(void)
goto err_out;
}
- init_timer(&cn_test_timer);
- cn_test_timer.function = cn_test_timer_func;
+ setup_timer(&cn_test_timer, cn_test_timer_func, 0);
cn_test_timer.expires = jiffies + HZ;
- cn_test_timer.data = 0;
add_timer(&cn_test_timer);
return 0;