From efb125d82f679e2cefbd7371e88703ee28eb8b03 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 9 Feb 2006 12:26:35 +0000 Subject: [PATCH] --- yaml --- r: 20292 b: refs/heads/master c: 1bdfd0d9632f0254a4fc01d17c9933ae6107dec4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/kernel/smp_mt.c | 29 ----------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/[refs] b/[refs] index 95fcf81788d1..418ef30d32b4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 359bbd42a5a205234d5943571fc7bf946967ee59 +refs/heads/master: 1bdfd0d9632f0254a4fc01d17c9933ae6107dec4 diff --git a/trunk/arch/mips/kernel/smp_mt.c b/trunk/arch/mips/kernel/smp_mt.c index 794a1c3de2a4..186f5deced40 100644 --- a/trunk/arch/mips/kernel/smp_mt.c +++ b/trunk/arch/mips/kernel/smp_mt.c @@ -102,35 +102,6 @@ void __init sanitize_tlb_entries(void) clear_c0_mvpcontrol(MVPCONTROL_VPC); } -#if 0 -/* - * Use c0_MVPConf0 to find out how many CPUs are available, setting up - * phys_cpu_present_map and the logical/physical mappings. - */ -void __init prom_build_cpu_map(void) -{ - int i, num, ncpus; - - cpus_clear(phys_cpu_present_map); - - /* assume we boot on cpu 0.... */ - cpu_set(0, phys_cpu_present_map); - __cpu_number_map[0] = 0; - __cpu_logical_map[0] = 0; - - if (cpu_has_mipsmt) { - ncpus = ((read_c0_mvpconf0() & (MVPCONF0_PVPE)) >> MVPCONF0_PVPE_SHIFT) + 1; - for (i=1, num=0; i< NR_CPUS && i