Browse Source

sparc64: Don't hook up pcr_ops on spitfire chips.

They can't be used for profiling and NMI watchdog currently
since they lack the counter overflow interrupt.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 16 years ago
parent
commit
1c2f61d40b
1 changed files with 6 additions and 1 deletions
  1. 6 1
      arch/sparc/kernel/pcr.c

+ 6 - 1
arch/sparc/kernel/pcr.c

@@ -133,11 +133,16 @@ int __init pcr_arch_init(void)
 
 
 	case cheetah:
 	case cheetah:
 	case cheetah_plus:
 	case cheetah_plus:
-	case spitfire:
 		pcr_ops = &direct_pcr_ops;
 		pcr_ops = &direct_pcr_ops;
 		pcr_enable = PCR_SUN4U_ENABLE;
 		pcr_enable = PCR_SUN4U_ENABLE;
 		break;
 		break;
 
 
+	case spitfire:
+		/* UltraSPARC-I/II and derivatives lack a profile
+		 * counter overflow interrupt so we can't make use of
+		 * their hardware currently.
+		 */
+		/* fallthrough */
 	default:
 	default:
 		err = -ENODEV;
 		err = -ENODEV;
 		goto out_unregister;
 		goto out_unregister;