]> git.hungrycats.org Git - linux/commitdiff
ppc64: Add the G5 (IBM 970) CPU to the cputable
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:28:02 +0000 (13:28 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:28:02 +0000 (13:28 +1100)
arch/ppc64/kernel/cputable.c

index 04fde4359be24e6bd57780b0e9cea804943bb71a..b240306f0c046d39c80ae80ce6c2781639767480 100644 (file)
@@ -30,6 +30,7 @@ struct cpu_spec* cur_cpu_spec = NULL;
  */
 extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec);
 extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec);
+extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
 
 
 /* We only set the altivec features if the kernel was compiled with altivec
@@ -119,10 +120,10 @@ struct cpu_spec   cpu_specs[] = {
     {  /* PPC970 */
            0xffff0000, 0x00390000, "PPC970",
            CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_USE_TB | CPU_FTR_HPTE_TABLE |
-           CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_ALTIVEC_COMP,
+           CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_ALTIVEC_COMP | CPU_FTR_CAN_NAP,
            COMMON_USER_PPC64 | PPC_FEATURE_HAS_ALTIVEC_COMP,
            128, 128,
-           __setup_cpu_power4,
+           __setup_cpu_ppc970,
            COMMON_PPC64_FW
     },
     {  /* Power5 */