From: David S. Miller Date: Fri, 6 Feb 2009 07:59:04 +0000 (-0800) Subject: sparc64: Don't hook up pcr_ops on spitfire chips. X-Git-Tag: v2.6.29-rc5~41^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1c2f61d40b691789626489fa947a3e003c9a84be;p=karo-tx-linux.git 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 --- diff --git a/arch/sparc/kernel/pcr.c b/arch/sparc/kernel/pcr.c index 92e0dda141a4..1ae8cdd7e703 100644 --- a/arch/sparc/kernel/pcr.c +++ b/arch/sparc/kernel/pcr.c @@ -133,11 +133,16 @@ int __init pcr_arch_init(void) case cheetah: case cheetah_plus: - case spitfire: pcr_ops = &direct_pcr_ops; pcr_enable = PCR_SUN4U_ENABLE; 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: err = -ENODEV; goto out_unregister;