summaryrefslogtreecommitdiff
path: root/include/asm-mips/bugs.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-04-13 17:37:32 +0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 22:31:05 +0400
commitf03da6e28ea2d20f1a8451869fd1c9ea9935022b (patch)
tree09a2e8041c2d4e1dcf9d35990caef9677db12218 /include/asm-mips/bugs.h
parent589391a0fe229573439994b3be2cc9377722cf3d (diff)
downloadlinux-f03da6e28ea2d20f1a8451869fd1c9ea9935022b.tar.xz
Fix BogoMIPS display on UP and some minor cosmetical things.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/bugs.h')
-rw-r--r--include/asm-mips/bugs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-mips/bugs.h b/include/asm-mips/bugs.h
index b14b961c2100..9247c1b4ce02 100644
--- a/include/asm-mips/bugs.h
+++ b/include/asm-mips/bugs.h
@@ -8,12 +8,17 @@
#define _ASM_BUGS_H
#include <linux/config.h>
+#include <asm/cpu.h>
+#include <asm/cpu-info.h>
extern void check_bugs32(void);
extern void check_bugs64(void);
static inline void check_bugs(void)
{
+ unsigned int cpu = smp_processor_id();
+
+ cpu_data[cpu].udelay_val = loops_per_jiffy;
check_bugs32();
#ifdef CONFIG_64BIT
check_bugs64();