]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv6/sysctl_net_ipv6.c
kgdb: call touch_softlockup_watchdog on resume
[linux-2.6-omap-h63xx.git] / net / ipv6 / sysctl_net_ipv6.c
index 5c99274558bf40412b738c4c71484c2a082e7029..587f8f60c489644d3d6dc5a9748fd85963912ae3 100644 (file)
@@ -150,3 +150,19 @@ void ipv6_sysctl_unregister(void)
        unregister_net_sysctl_table(ip6_header);
        unregister_pernet_subsys(&ipv6_sysctl_net_ops);
 }
+
+static struct ctl_table_header *ip6_base;
+
+int ipv6_static_sysctl_register(void)
+{
+       static struct ctl_table empty[1];
+       ip6_base = register_sysctl_paths(net_ipv6_ctl_path, empty);
+       if (ip6_base == NULL)
+               return -ENOMEM;
+       return 0;
+}
+
+void ipv6_static_sysctl_unregister(void)
+{
+       unregister_net_sysctl_table(ip6_base);
+}