diff options
Diffstat (limited to 'arch/ppc/kernel/pmac_setup.c')
-rw-r--r-- | arch/ppc/kernel/pmac_setup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/ppc/kernel/pmac_setup.c b/arch/ppc/kernel/pmac_setup.c index 0a23c4473..4c3e9a790 100644 --- a/arch/ppc/kernel/pmac_setup.c +++ b/arch/ppc/kernel/pmac_setup.c @@ -39,7 +39,6 @@ #include <linux/ioport.h> #include <linux/major.h> #include <linux/blk.h> -#include <linux/ide.h> #include <linux/vt_kern.h> #include <linux/console.h> #include <linux/ide.h> @@ -96,6 +95,7 @@ unsigned char drive_info; int ppc_override_l2cr = 0; int ppc_override_l2cr_value; +int has_l2cache = 0; extern char saved_command_line[]; @@ -147,6 +147,7 @@ pmac_get_cpuinfo(char *buffer) unsigned int *dc = (unsigned int *) get_property(np, "d-cache-size", NULL); len += sprintf(buffer+len, "L2 cache\t:"); + has_l2cache = 1; if (get_property(np, "cache-unified", NULL) != 0 && dc) { len += sprintf(buffer+len, " %dK unified", *dc / 1024); } else { @@ -359,7 +360,8 @@ static void __init ohare_init(void) sysctrl_regs[4] |= 0x04000020; else sysctrl_regs[4] |= 0x04000000; - printk(KERN_INFO "Level 2 cache enabled\n"); + if(has_l2cache) + printk(KERN_INFO "Level 2 cache enabled\n"); } } } |