|
@@ -11,6 +11,7 @@
|
|
|
#include <linux/init.h>
|
|
#include <linux/init.h>
|
|
|
#include <linux/io.h>
|
|
#include <linux/io.h>
|
|
|
|
|
|
|
|
|
|
+#include <asm/smp_plat.h>
|
|
|
#include <asm/smp_scu.h>
|
|
#include <asm/smp_scu.h>
|
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/cacheflush.h>
|
|
|
#include <asm/cputype.h>
|
|
#include <asm/cputype.h>
|
|
@@ -74,7 +75,7 @@ void scu_enable(void __iomem *scu_base)
|
|
|
int scu_power_mode(void __iomem *scu_base, unsigned int mode)
|
|
int scu_power_mode(void __iomem *scu_base, unsigned int mode)
|
|
|
{
|
|
{
|
|
|
unsigned int val;
|
|
unsigned int val;
|
|
|
- int cpu = smp_processor_id();
|
|
|
|
|
|
|
+ int cpu = cpu_logical_map(smp_processor_id());
|
|
|
|
|
|
|
|
if (mode > 3 || mode == 1 || cpu > 3)
|
|
if (mode > 3 || mode == 1 || cpu > 3)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|