aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ixp4xx/ixp4xx-csr-2.1/module-param.patch
blob: c61fcc00d3fc4670b46bf4f0153c1ad34b22054a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 src/oslinux/IxLinuxInit.c |    4 ++++
 1 files changed, 4 insertions(+)

Index: ixp400_xscale_sw/src/oslinux/IxLinuxInit.c
===================================================================
--- ixp400_xscale_sw.orig/src/oslinux/IxLinuxInit.c
+++ ixp400_xscale_sw/src/oslinux/IxLinuxInit.c
@@ -93,7 +93,11 @@
 /* Module parameters */
 static int livelock_dispatcher = 0;/* default: don't use livelock dispatcher*/
 
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,16)
 MODULE_PARM(livelock_dispatcher, "i");
+#else
+module_param(livelock_dispatcher, int, 0644);
+#endif
 MODULE_PARM_DESC(livelock_dispatcher, "If non-zero, use the livelock prevention qmgr dispatcher");
 
 /* Init and cleanup functions for module */