diff options
| -rw-r--r-- | arch/arm/kernel/pj4-cp0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/pj4-cp0.c b/arch/arm/kernel/pj4-cp0.c index 679cf4d18c08..fc7208636284 100644 --- a/arch/arm/kernel/pj4-cp0.c +++ b/arch/arm/kernel/pj4-cp0.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
| 18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
| 19 | #include <asm/thread_notify.h> | 19 | #include <asm/thread_notify.h> |
| 20 | #include <asm/cputype.h> | ||
| 20 | 21 | ||
| 21 | static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t) | 22 | static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t) |
| 22 | { | 23 | { |
| @@ -80,6 +81,9 @@ static int __init pj4_cp0_init(void) | |||
| 80 | { | 81 | { |
| 81 | u32 cp_access; | 82 | u32 cp_access; |
| 82 | 83 | ||
| 84 | if (!cpu_is_pj4()) | ||
| 85 | return 0; | ||
| 86 | |||
| 83 | cp_access = pj4_cp_access_read() & ~0xf; | 87 | cp_access = pj4_cp_access_read() & ~0xf; |
| 84 | pj4_cp_access_write(cp_access); | 88 | pj4_cp_access_write(cp_access); |
| 85 | 89 | ||
