CVSROOT: /home/cvs
Module name: linux
Changes by: ppopov@ftp.linux-mips.org 05/04/08 09:33:17
Modified files:
arch/mips/au1000/common: Tag: linux_2_4 time.c
arch/mips/kernel: Tag: linux_2_4 cpu-probe.c
Log message:
Fixed buglet with previous patch that broke non au1x builds.
diff -urN linux/arch/mips/au1000/common/time.c
linux/arch/mips/au1000/common/time.c
--- linux/arch/mips/au1000/common/time.c 2005/04/07 00:37:19 1.5.2.21
+++ linux/arch/mips/au1000/common/time.c 2005/04/08 08:33:17 1.5.2.22
@@ -58,7 +58,7 @@
static unsigned long r4k_cur; /* What counter should be at next timer irq */
extern rwlock_t xtime_lock;
int no_au1xxx_32khz;
-int allow_au1k_wait = 0; /* default off for CP0 Counter */
+extern int allow_au1k_wait; /* default off for CP0 Counter */
/* Cycle counter value at the previous timer interrupt.. */
static unsigned int timerhi = 0, timerlo = 0;
diff -urN linux/arch/mips/kernel/cpu-probe.c linux/arch/mips/kernel/cpu-probe.c
--- linux/arch/mips/kernel/cpu-probe.c 2005/04/07 00:37:19 1.1.2.39
+++ linux/arch/mips/kernel/cpu-probe.c 2005/04/08 08:33:17 1.1.2.40
@@ -36,9 +36,10 @@
/* The Au1xxx wait is available only if using 32khz counter or
* external timer source, but specifically not CP0 Counter. */
+int allow_au1k_wait;
static void au1k_wait(void)
{
- unsigned long addr;
+ unsigned long addr = 0;
/* using the wait instruction makes CP0 counter unusable */
__asm__("la %0,au1k_wait\n\t"
".set mips3\n\t"
@@ -96,14 +97,11 @@
case CPU_AU1500:
case CPU_AU1550:
case CPU_AU1200:
- {
- extern int allow_au1k_wait; /* au1000/common/time.c */
- if (allow_au1k_wait) {
- cpu_wait = au1k_wait;
+ if (allow_au1k_wait) {
+ cpu_wait = au1k_wait;
printk(" available.\n");
- } else
+ } else
printk(" unavailable.\n");
- }
break;
default:
printk(" unavailable.\n");
|