diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-07-28 06:46:15 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-31 16:35:28 -0400 |
commit | 348c913f571dc1a0e7fd84d7206fc7ee983420df (patch) | |
tree | d08ae116332863b459bafffdf799c619c2c18a7c /arch/mips | |
parent | 3266c6a988a2d18ffe91fe7fd56d0d6cc13c341e (diff) |
[MIPS] Fix build breakage due to duplicate cpu_clock definition
commit e436d80085133858bf2613a630365e8a0459fd58
Author: Ingo Molnar <mingo@elte.hu>
Date: Thu Jul 19 21:28:35 2007 +0200
[PATCH] sched: implement cpu_clock(cpu) high-speed time source
broke the build of several MIPS platforms which were already using the
symbol cpu_clock for the own purposes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/lemote/lm2e/prom.c | 6 | ||||
-rw-r--r-- | arch/mips/lemote/lm2e/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/prom.c | 4 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/tx4938/toshiba_rbtx4938/setup.c | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/arch/mips/lemote/lm2e/prom.c b/arch/mips/lemote/lm2e/prom.c index 67312d7acf2a..4e3132e47bee 100644 --- a/arch/mips/lemote/lm2e/prom.c +++ b/arch/mips/lemote/lm2e/prom.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <asm/bootinfo.h> | 23 | #include <asm/bootinfo.h> |
24 | 24 | ||
25 | extern unsigned long bus_clock; | 25 | extern unsigned long bus_clock; |
26 | extern unsigned long cpu_clock; | 26 | extern unsigned long cpu_clock_freq; |
27 | extern unsigned int memsize, highmemsize; | 27 | extern unsigned int memsize, highmemsize; |
28 | extern int putDebugChar(unsigned char byte); | 28 | extern int putDebugChar(unsigned char byte); |
29 | 29 | ||
@@ -81,7 +81,7 @@ do { \ | |||
81 | l = (long)*env; | 81 | l = (long)*env; |
82 | while (l != 0) { | 82 | while (l != 0) { |
83 | parse_even_earlier(bus_clock, "busclock", l); | 83 | parse_even_earlier(bus_clock, "busclock", l); |
84 | parse_even_earlier(cpu_clock, "cpuclock", l); | 84 | parse_even_earlier(cpu_clock_freq, "cpuclock", l); |
85 | parse_even_earlier(memsize, "memsize", l); | 85 | parse_even_earlier(memsize, "memsize", l); |
86 | parse_even_earlier(highmemsize, "highmemsize", l); | 86 | parse_even_earlier(highmemsize, "highmemsize", l); |
87 | env++; | 87 | env++; |
@@ -91,7 +91,7 @@ do { \ | |||
91 | memsize = 256; | 91 | memsize = 256; |
92 | 92 | ||
93 | pr_info("busclock=%ld, cpuclock=%ld,memsize=%d,highmemsize=%d\n", | 93 | pr_info("busclock=%ld, cpuclock=%ld,memsize=%d,highmemsize=%d\n", |
94 | bus_clock, cpu_clock, memsize, highmemsize); | 94 | bus_clock, cpu_clock_freq, memsize, highmemsize); |
95 | } | 95 | } |
96 | 96 | ||
97 | void __init prom_free_prom_memory(void) | 97 | void __init prom_free_prom_memory(void) |
diff --git a/arch/mips/lemote/lm2e/setup.c b/arch/mips/lemote/lm2e/setup.c index 0e4d1fa572b5..dbb801678fd9 100644 --- a/arch/mips/lemote/lm2e/setup.c +++ b/arch/mips/lemote/lm2e/setup.c | |||
@@ -58,7 +58,7 @@ extern void mips_reboot_setup(void); | |||
58 | #define PTR_PAD(p) (p) | 58 | #define PTR_PAD(p) (p) |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | unsigned long cpu_clock; | 61 | unsigned long cpu_clock_freq; |
62 | unsigned long bus_clock; | 62 | unsigned long bus_clock; |
63 | unsigned int memsize; | 63 | unsigned int memsize; |
64 | unsigned int highmemsize = 0; | 64 | unsigned int highmemsize = 0; |
@@ -71,7 +71,7 @@ void __init plat_timer_setup(struct irqaction *irq) | |||
71 | static void __init loongson2e_time_init(void) | 71 | static void __init loongson2e_time_init(void) |
72 | { | 72 | { |
73 | /* setup mips r4k timer */ | 73 | /* setup mips r4k timer */ |
74 | mips_hpt_frequency = cpu_clock / 2; | 74 | mips_hpt_frequency = cpu_clock_freq / 2; |
75 | } | 75 | } |
76 | 76 | ||
77 | static unsigned long __init mips_rtc_get_time(void) | 77 | static unsigned long __init mips_rtc_get_time(void) |
diff --git a/arch/mips/pmc-sierra/yosemite/prom.c b/arch/mips/pmc-sierra/yosemite/prom.c index 1e1685e415a4..0cd78f0f5f2d 100644 --- a/arch/mips/pmc-sierra/yosemite/prom.c +++ b/arch/mips/pmc-sierra/yosemite/prom.c | |||
@@ -34,7 +34,7 @@ extern void prom_grab_secondary(void); | |||
34 | struct callvectors *debug_vectors; | 34 | struct callvectors *debug_vectors; |
35 | 35 | ||
36 | extern unsigned long yosemite_base; | 36 | extern unsigned long yosemite_base; |
37 | extern unsigned long cpu_clock; | 37 | extern unsigned long cpu_clock_freq; |
38 | 38 | ||
39 | const char *get_system_type(void) | 39 | const char *get_system_type(void) |
40 | { | 40 | { |
@@ -119,7 +119,7 @@ void __init prom_init(void) | |||
119 | 16); | 119 | 16); |
120 | 120 | ||
121 | if (strncmp("cpuclock", *env, strlen("cpuclock")) == 0) | 121 | if (strncmp("cpuclock", *env, strlen("cpuclock")) == 0) |
122 | cpu_clock = | 122 | cpu_clock_freq = |
123 | simple_strtol(*env + strlen("cpuclock="), NULL, | 123 | simple_strtol(*env + strlen("cpuclock="), NULL, |
124 | 10); | 124 | 10); |
125 | 125 | ||
diff --git a/arch/mips/pmc-sierra/yosemite/setup.c b/arch/mips/pmc-sierra/yosemite/setup.c index f7f93ae24c34..58862c8d1d00 100644 --- a/arch/mips/pmc-sierra/yosemite/setup.c +++ b/arch/mips/pmc-sierra/yosemite/setup.c | |||
@@ -59,7 +59,7 @@ unsigned char titan_ge_mac_addr_base[6] = { | |||
59 | 0x00, 0xe0, 0x04, 0x00, 0x00, 0x21 | 59 | 0x00, 0xe0, 0x04, 0x00, 0x00, 0x21 |
60 | }; | 60 | }; |
61 | 61 | ||
62 | unsigned long cpu_clock; | 62 | unsigned long cpu_clock_freq; |
63 | unsigned long yosemite_base; | 63 | unsigned long yosemite_base; |
64 | 64 | ||
65 | static struct m48t37_rtc *m48t37_base; | 65 | static struct m48t37_rtc *m48t37_base; |
@@ -140,7 +140,7 @@ void __init plat_timer_setup(struct irqaction *irq) | |||
140 | 140 | ||
141 | void yosemite_time_init(void) | 141 | void yosemite_time_init(void) |
142 | { | 142 | { |
143 | mips_hpt_frequency = cpu_clock / 2; | 143 | mips_hpt_frequency = cpu_clock_freq / 2; |
144 | mips_hpt_frequency = 33000000 * 3 * 5; | 144 | mips_hpt_frequency = 33000000 * 3 * 5; |
145 | } | 145 | } |
146 | 146 | ||
diff --git a/arch/mips/tx4938/toshiba_rbtx4938/setup.c b/arch/mips/tx4938/toshiba_rbtx4938/setup.c index 6ed39a5aea72..f9ad482749e4 100644 --- a/arch/mips/tx4938/toshiba_rbtx4938/setup.c +++ b/arch/mips/tx4938/toshiba_rbtx4938/setup.c | |||
@@ -657,7 +657,7 @@ void __init tx4938_board_setup(void) | |||
657 | 657 | ||
658 | /* clocks */ | 658 | /* clocks */ |
659 | if (txx9_master_clock) { | 659 | if (txx9_master_clock) { |
660 | /* calculate gbus_clock and cpu_clock from master_clock */ | 660 | /* calculate gbus_clock and cpu_clock_freq from master_clock */ |
661 | divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK; | 661 | divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK; |
662 | switch (divmode) { | 662 | switch (divmode) { |
663 | case TX4938_CCFG_DIVMODE_8: | 663 | case TX4938_CCFG_DIVMODE_8: |
@@ -691,7 +691,7 @@ void __init tx4938_board_setup(void) | |||
691 | if (txx9_cpu_clock == 0) { | 691 | if (txx9_cpu_clock == 0) { |
692 | txx9_cpu_clock = 300000000; /* 300MHz */ | 692 | txx9_cpu_clock = 300000000; /* 300MHz */ |
693 | } | 693 | } |
694 | /* calculate gbus_clock and master_clock from cpu_clock */ | 694 | /* calculate gbus_clock and master_clock from cpu_clock_freq */ |
695 | cpuclk = txx9_cpu_clock; | 695 | cpuclk = txx9_cpu_clock; |
696 | divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK; | 696 | divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK; |
697 | switch (divmode) { | 697 | switch (divmode) { |