aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc64/kernel/us2e_cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/us2e_cpufreq.c')
-rw-r--r--arch/sparc64/kernel/us2e_cpufreq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/us2e_cpufreq.c b/arch/sparc64/kernel/us2e_cpufreq.c
index b35dc8dc995..669fb83dd4f 100644
--- a/arch/sparc64/kernel/us2e_cpufreq.c
+++ b/arch/sparc64/kernel/us2e_cpufreq.c
@@ -346,6 +346,9 @@ static int __init us2e_freq_init(void)
unsigned long manuf, impl, ver;
int ret;
+ if (tlb_type != spitfire)
+ return -ENODEV;
+
__asm__("rdpr %%ver, %0" : "=r" (ver));
manuf = ((ver >> 48) & 0xffff);
impl = ((ver >> 32) & 0xffff);