projects
/
~tnikolova
/
compat
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89e9cfb
)
compat: backport netdev_refcnt_read.
author
Hauke Mehrtens
<hauke@hauke-m.de>
Thu, 31 Mar 2011 16:21:32 +0000
(09:21 -0700)
committer
Luis R. Rodriguez
<lrodriguez@atheros.com>
Thu, 31 Mar 2011 19:15:41 +0000
(12:15 -0700)
Backport of upstream commit:
29b4433d991c88d86ca48a4c1cc33c671475be4b
net: percpu net_device refcount
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/compat-2.6.37.h
patch
|
blob
|
history
diff --git
a/include/linux/compat-2.6.37.h
b/include/linux/compat-2.6.37.h
index
e993f75
..
cee23a8
100644
(file)
--- a/
include/linux/compat-2.6.37.h
+++ b/
include/linux/compat-2.6.37.h
@@
-108,6
+108,8
@@
extern void compat_led_brightness_set(struct led_classdev *led_cdev,
#define alloc_ordered_workqueue(name, flags) create_singlethread_workqueue(name)
+#define netdev_refcnt_read(a) atomic_read(&a->refcnt)
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) */
#endif /* LINUX_26_37_COMPAT_H */