Commit 1c2f61d40b691789626489fa947a3e003c9a84be
1 parent
dc4ff585ff
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff
arch/sparc/kernel/pcr.c
... | ... | @@ -133,11 +133,16 @@ |
133 | 133 | |
134 | 134 | case cheetah: |
135 | 135 | case cheetah_plus: |
136 | - case spitfire: | |
137 | 136 | pcr_ops = &direct_pcr_ops; |
138 | 137 | pcr_enable = PCR_SUN4U_ENABLE; |
139 | 138 | break; |
140 | 139 | |
140 | + case spitfire: | |
141 | + /* UltraSPARC-I/II and derivatives lack a profile | |
142 | + * counter overflow interrupt so we can't make use of | |
143 | + * their hardware currently. | |
144 | + */ | |
145 | + /* fallthrough */ | |
141 | 146 | default: |
142 | 147 | err = -ENODEV; |
143 | 148 | goto out_unregister; |