[sparc32] [8/13] define cache_decay_ticks

William Lee Irwin III
2004-08-05T04:52:24Z

On Wed, Aug 04, 2004 at 09:48:39PM -0700, William Lee Irwin III wrote:
> num_context_patch2 is never defined, only declared. However, these
> declarations generate an undefined symbol reference. So remove it.

cache_decay_ticks needs to be defined in order for the kernel to link.
This placeholder is inaccurate, however, other, more grave SMP issues
need to be addressed first.

Index: mm2-2.6.8-rc2/arch/sparc/kernel/smp.c
===================================================================
--- mm2-2.6.8-rc2.orig/arch/sparc/kernel/smp.c
+++ mm2-2.6.8-rc2/arch/sparc/kernel/smp.c
@@ -45,6 +45,7 @@
volatile int __cpu_number_map[NR_CPUS];
volatile int __cpu_logical_map[NR_CPUS];
cycles_t cacheflush_time = 0; /* XXX */
+unsigned long cache_decay_ticks = 100;

cpumask_t cpu_online_map = CPU_MASK_NONE;
cpumask_t phys_cpu_present_map = CPU_MASK_NONE;