Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc32: Remove sun4 and sun4c from enum sparc_cpu.

All the remaining references are trivially removed since we've
just eliminated the final reference to sparc_cpu_model from
assembler code in commit b7d96ce189564e661909fbf8df39d7358149885b
("sparc32: Remove sparc_cpu_model read from floppy interrupt handler.")

Signed-off-by: David S. Miller <davem@davemloft.net>

+11 -56
+7 -9
arch/sparc/include/asm/cpu_type.h
··· 5 5 * Sparc (general) CPU types 6 6 */ 7 7 enum sparc_cpu { 8 - sun4 = 0x00, 9 - sun4c = 0x01, 10 - sun4m = 0x02, 11 - sun4d = 0x03, 12 - sun4e = 0x04, 13 - sun4u = 0x05, /* V8 ploos ploos */ 14 - sun_unknown = 0x06, 15 - ap1000 = 0x07, /* almost a sun4m */ 16 - sparc_leon = 0x08, /* Leon SoC */ 8 + sun4m = 0x00, 9 + sun4d = 0x01, 10 + sun4e = 0x02, 11 + sun4u = 0x03, /* V8 ploos ploos */ 12 + sun_unknown = 0x04, 13 + ap1000 = 0x05, /* almost a sun4m */ 14 + sparc_leon = 0x06, /* Leon SoC */ 17 15 }; 18 16 19 17 #ifdef CONFIG_SPARC32
+1 -3
arch/sparc/include/asm/shmparam_32.h
··· 4 4 #define __ARCH_FORCE_SHMLBA 1 5 5 6 6 extern int vac_cache_size; 7 - #define SHMLBA (vac_cache_size ? vac_cache_size : \ 8 - (sparc_cpu_model == sun4c ? (64 * 1024) : \ 9 - (sparc_cpu_model == sun4 ? (128 * 1024) : PAGE_SIZE))) 7 + #define SHMLBA (vac_cache_size ? vac_cache_size : PAGE_SIZE) 10 8 11 9 #endif /* _ASMSPARC_SHMPARAM_H */
+3 -10
arch/sparc/kernel/auxio_32.c
··· 32 32 switch (sparc_cpu_model) { 33 33 case sparc_leon: 34 34 case sun4d: 35 - case sun4: 36 35 return; 37 36 default: 38 37 break; ··· 64 65 r.start = auxregs[0].phys_addr; 65 66 r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1; 66 67 auxio_register = of_ioremap(&r, 0, auxregs[0].reg_size, "auxio"); 67 - /* Fix the address on sun4m and sun4c. */ 68 - if((((unsigned long) auxregs[0].phys_addr) & 3) == 3 || 69 - sparc_cpu_model == sun4c) 68 + /* Fix the address on sun4m. */ 69 + if ((((unsigned long) auxregs[0].phys_addr) & 3) == 3) 70 70 auxio_register += (3 - ((unsigned long)auxio_register & 3)); 71 71 72 72 set_auxio(AUXIO_LED, 0); ··· 84 86 unsigned char regval; 85 87 unsigned long flags; 86 88 spin_lock_irqsave(&auxio_lock, flags); 87 - switch(sparc_cpu_model) { 88 - case sun4c: 89 - regval = sbus_readb(auxio_register); 90 - sbus_writeb(((regval | bits_on) & ~bits_off) | AUXIO_ORMEIN, 91 - auxio_register); 92 - break; 89 + switch (sparc_cpu_model) { 93 90 case sun4m: 94 91 if(!auxio_register) 95 92 break; /* VME chassis sun4m, no auxio. */
-10
arch/sparc/kernel/setup_32.c
··· 217 217 218 218 /* Set sparc_cpu_model */ 219 219 sparc_cpu_model = sun_unknown; 220 - if (!strcmp(&cputypval[0], "sun4 ")) 221 - sparc_cpu_model = sun4; 222 - if (!strcmp(&cputypval[0], "sun4c")) 223 - sparc_cpu_model = sun4c; 224 220 if (!strcmp(&cputypval[0], "sun4m")) 225 221 sparc_cpu_model = sun4m; 226 222 if (!strcmp(&cputypval[0], "sun4s")) ··· 232 236 233 237 printk("ARCH: "); 234 238 switch(sparc_cpu_model) { 235 - case sun4: 236 - printk("SUN4\n"); 237 - break; 238 - case sun4c: 239 - printk("SUN4C\n"); 240 - break; 241 239 case sun4m: 242 240 printk("SUN4M\n"); 243 241 break;
-24
arch/sparc/kernel/smp_32.c
··· 85 85 (bogosum/(5000/HZ))%100); 86 86 87 87 switch(sparc_cpu_model) { 88 - case sun4: 89 - printk("SUN4\n"); 90 - BUG(); 91 - break; 92 - case sun4c: 93 - printk("SUN4C\n"); 94 - BUG(); 95 - break; 96 88 case sun4m: 97 89 smp4m_smp_done(); 98 90 break; ··· 318 326 smp_store_cpu_info(boot_cpu_id); 319 327 320 328 switch(sparc_cpu_model) { 321 - case sun4: 322 - printk("SUN4\n"); 323 - BUG(); 324 - break; 325 - case sun4c: 326 - printk("SUN4C\n"); 327 - BUG(); 328 - break; 329 329 case sun4m: 330 330 smp4m_boot_cpus(); 331 331 break; ··· 383 399 int ret=0; 384 400 385 401 switch(sparc_cpu_model) { 386 - case sun4: 387 - printk("SUN4\n"); 388 - BUG(); 389 - break; 390 - case sun4c: 391 - printk("SUN4C\n"); 392 - BUG(); 393 - break; 394 402 case sun4m: 395 403 ret = smp4m_boot_one_cpu(cpu); 396 404 break;