projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SPARC64]: Detect sun4v early in boot process.
[powerpc.git]
/
arch
/
sparc64
/
kernel
/
us2e_cpufreq.c
diff --git
a/arch/sparc64/kernel/us2e_cpufreq.c
b/arch/sparc64/kernel/us2e_cpufreq.c
index
b35dc8d
..
669fb83
100644
(file)
--- 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);