[PATCH] au1x00 pm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm working on a custom embedded board with the Alchemy au1100. I saw
that some code in the thunk is not up-to-date so I'm sending the patches
that I needed to make the kernel compile and work. Since this is my
first contribution please tell me if there's something wrong. 

This patch fixes some compilation problems and reenables PM. Frequency
change and sleep is ok, need to work on bootloader to make suspend
work.  

-- 
Christian <c.pellegrin@xxxxxxxxxxx>
Index: arch/mips/Kconfig
===================================================================
RCS file: /home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.127
diff -u -r1.127 Kconfig
--- arch/mips/Kconfig	12 Jan 2005 00:10:42 -0000	1.127
+++ arch/mips/Kconfig	12 Jan 2005 09:04:02 -0000
@@ -970,6 +970,9 @@
 config MIPS_DISABLE_OBSOLETE_IDE
 	bool
 
+config WWPC
+	bool "Support for WWPC"
+
 config CPU_LITTLE_ENDIAN
 	bool "Generate little endian code"
 	default y if ACER_PICA_61 || CASIO_E55 || DDB5074 || DDB5476 || DDB5477 || MACH_DECSTATION || IBM_WORKPAD || LASAT || MIPS_COBALT || MIPS_ITE8172 || MIPS_IVR || SOC_AU1X00 || NEC_OSPREY || OLIVETTI_M700 || SNI_RM200_PCI || VICTOR_MPC30X || ZAO_CAPCELLA
@@ -1583,7 +1586,7 @@
 
 config PM
 	bool "Power Management support (EXPERIMENTAL)"
-	depends on EXPERIMENTAL && MACH_AU1X00
+	depends on EXPERIMENTAL && SOC_AU1X00
 
 endmenu
 
Index: arch/mips/au1000/common/power.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/au1000/common/power.c,v
retrieving revision 1.15
diff -u -r1.15 power.c
--- arch/mips/au1000/common/power.c	20 Apr 2004 15:52:51 -0000	1.15
+++ arch/mips/au1000/common/power.c	12 Jan 2005 09:04:48 -0000
@@ -34,6 +34,7 @@
 #include <linux/pm.h>
 #include <linux/slab.h>
 #include <linux/sysctl.h>
+#include <linux/jiffies.h>
 
 #include <asm/string.h>
 #include <asm/uaccess.h>
Index: arch/mips/au1000/common/time.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/au1000/common/time.c,v
retrieving revision 1.31
diff -u -r1.31 time.c
--- arch/mips/au1000/common/time.c	10 Jan 2005 10:23:36 -0000	1.31
+++ arch/mips/au1000/common/time.c	12 Jan 2005 09:04:54 -0000
@@ -123,7 +123,7 @@
 	int time_elapsed;
 	static int jiffie_drift = 0;
 
-	kstat.irqs[0][irq]++;
+	kstat_this_cpu.irqs[irq]++;
 	if (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_M20) {
 		/* should never happen! */
 		printk(KERN_WARNING "counter 0 w status eror\n");

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux