diff options
author | David S. Miller <davem@davemloft.net> | 2009-02-06 08:59:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-06 08:59:04 +0100 |
commit | 1c2f61d40b691789626489fa947a3e003c9a84be (patch) | |
tree | f9129cd1ed8f769b13c4de440d716cf4afb24a59 /arch/sparc/kernel/pcr.c | |
parent | sparc64: Call dump_stack() in die_nmi(). (diff) | |
download | linux-1c2f61d40b691789626489fa947a3e003c9a84be.tar.xz linux-1c2f61d40b691789626489fa947a3e003c9a84be.zip |
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>
Diffstat (limited to 'arch/sparc/kernel/pcr.c')
-rw-r--r-- | arch/sparc/kernel/pcr.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |