Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63472
b: refs/heads/master
c: 348c913
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Jul 31, 2007
1 parent d199933 commit 4b72645
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3266c6a988a2d18ffe91fe7fd56d0d6cc13c341e
refs/heads/master: 348c913f571dc1a0e7fd84d7206fc7ee983420df
6 changes: 3 additions & 3 deletions trunk/arch/mips/lemote/lm2e/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <asm/bootinfo.h>

extern unsigned long bus_clock;
extern unsigned long cpu_clock;
extern unsigned long cpu_clock_freq;
extern unsigned int memsize, highmemsize;
extern int putDebugChar(unsigned char byte);

Expand Down Expand Up @@ -81,7 +81,7 @@ do { \
l = (long)*env;
while (l != 0) {
parse_even_earlier(bus_clock, "busclock", l);
parse_even_earlier(cpu_clock, "cpuclock", l);
parse_even_earlier(cpu_clock_freq, "cpuclock", l);
parse_even_earlier(memsize, "memsize", l);
parse_even_earlier(highmemsize, "highmemsize", l);
env++;
Expand All @@ -91,7 +91,7 @@ do { \
memsize = 256;

pr_info("busclock=%ld, cpuclock=%ld,memsize=%d,highmemsize=%d\n",
bus_clock, cpu_clock, memsize, highmemsize);
bus_clock, cpu_clock_freq, memsize, highmemsize);
}

void __init prom_free_prom_memory(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/lemote/lm2e/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ extern void mips_reboot_setup(void);
#define PTR_PAD(p) (p)
#endif

unsigned long cpu_clock;
unsigned long cpu_clock_freq;
unsigned long bus_clock;
unsigned int memsize;
unsigned int highmemsize = 0;
Expand All @@ -71,7 +71,7 @@ void __init plat_timer_setup(struct irqaction *irq)
static void __init loongson2e_time_init(void)
{
/* setup mips r4k timer */
mips_hpt_frequency = cpu_clock / 2;
mips_hpt_frequency = cpu_clock_freq / 2;
}

static unsigned long __init mips_rtc_get_time(void)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/pmc-sierra/yosemite/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern void prom_grab_secondary(void);
struct callvectors *debug_vectors;

extern unsigned long yosemite_base;
extern unsigned long cpu_clock;
extern unsigned long cpu_clock_freq;

const char *get_system_type(void)
{
Expand Down Expand Up @@ -119,7 +119,7 @@ void __init prom_init(void)
16);

if (strncmp("cpuclock", *env, strlen("cpuclock")) == 0)
cpu_clock =
cpu_clock_freq =
simple_strtol(*env + strlen("cpuclock="), NULL,
10);

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/pmc-sierra/yosemite/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ unsigned char titan_ge_mac_addr_base[6] = {
0x00, 0xe0, 0x04, 0x00, 0x00, 0x21
};

unsigned long cpu_clock;
unsigned long cpu_clock_freq;
unsigned long yosemite_base;

static struct m48t37_rtc *m48t37_base;
Expand Down Expand Up @@ -140,7 +140,7 @@ void __init plat_timer_setup(struct irqaction *irq)

void yosemite_time_init(void)
{
mips_hpt_frequency = cpu_clock / 2;
mips_hpt_frequency = cpu_clock_freq / 2;
mips_hpt_frequency = 33000000 * 3 * 5;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/tx4938/toshiba_rbtx4938/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ void __init tx4938_board_setup(void)

/* clocks */
if (txx9_master_clock) {
/* calculate gbus_clock and cpu_clock from master_clock */
/* calculate gbus_clock and cpu_clock_freq from master_clock */
divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK;
switch (divmode) {
case TX4938_CCFG_DIVMODE_8:
Expand Down Expand Up @@ -691,7 +691,7 @@ void __init tx4938_board_setup(void)
if (txx9_cpu_clock == 0) {
txx9_cpu_clock = 300000000; /* 300MHz */
}
/* calculate gbus_clock and master_clock from cpu_clock */
/* calculate gbus_clock and master_clock from cpu_clock_freq */
cpuclk = txx9_cpu_clock;
divmode = (unsigned long)tx4938_ccfgptr->ccfg & TX4938_CCFG_DIVMODE_MASK;
switch (divmode) {
Expand Down

0 comments on commit 4b72645

Please sign in to comment.