Skip to contentSkip to conversation

cpufreq not compiling without /proc

PATCH New Paul Rolland 1 participant 1 message Jan 12, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq not compiling without /proc

Hello,

This is a quick patch to ensure that functions used to create and remove entries in /proc are not compiled in support for /proc is not enabled.

Regards,
Paul Rolland, [email protected]

--- linux-2.5.56/net/ipv4/route.c 2003-01-10 21:12:25.000000000
+0100
+++ linux-2.5.56-work/net/ipv4/route.c 2003-01-12 12:11:30.000000000 +0100
@@ -2672,12 +2672,14 @@

                                        ip_rt_gc_interval;
        add_timer(&rt_periodic_timer);

+#ifdef CONFIG_PROC_FS

        if (rt_cache_proc_init())
                goto out_enomem;
        proc_net_create ("rt_cache_stat", 0, rt_cache_stat_get_info);
 #ifdef CONFIG_NET_CLS_ROUTE
        create_proc_read_entry("net/rt_acct", 0, 0, ip_rt_acct_read,
NULL);
 #endif
+#endif
        xfrm_init();
 out:
        return rc;