|
@@ -17,6 +17,7 @@
|
|
#include <linux/init.h>
|
|
#include <linux/init.h>
|
|
#include <linux/io.h>
|
|
#include <linux/io.h>
|
|
#include <asm/thread_notify.h>
|
|
#include <asm/thread_notify.h>
|
|
|
|
+#include <asm/cputype.h>
|
|
|
|
|
|
static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t)
|
|
static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t)
|
|
{
|
|
{
|
|
@@ -80,6 +81,9 @@ static int __init pj4_cp0_init(void)
|
|
{
|
|
{
|
|
u32 cp_access;
|
|
u32 cp_access;
|
|
|
|
|
|
|
|
+ if (!cpu_is_pj4())
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
cp_access = pj4_cp_access_read() & ~0xf;
|
|
cp_access = pj4_cp_access_read() & ~0xf;
|
|
pj4_cp_access_write(cp_access);
|
|
pj4_cp_access_write(cp_access);
|
|
|
|
|