patch-2.4.0-test2 linux/arch/sh/kernel/setup.c
Next file: linux/arch/sh/kernel/setup_hd64461.c
Previous file: linux/arch/sh/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Mon Jun 19 17:59:37 2000
- Orig file:
v2.4.0-test1/linux/arch/sh/kernel/setup.c
- Orig date:
Wed Apr 26 16:34:07 2000
diff -u --recursive --new-file v2.4.0-test1/linux/arch/sh/kernel/setup.c linux/arch/sh/kernel/setup.c
@@ -110,23 +110,6 @@
static unsigned long memory_start, memory_end;
-unsigned long __init memparse(char *ptr, char **retptr)
-{
- unsigned long ret;
-
- ret = simple_strtoul(ptr, retptr, 0);
-
- if (**retptr == 'K' || **retptr == 'k') {
- ret <<= 10;
- (*retptr)++;
- }
- else if (**retptr == 'M' || **retptr == 'm') {
- ret <<= 20;
- (*retptr)++;
- }
- return ret;
-} /* memparse */
-
static inline void parse_mem_cmdline (char ** cmdline_p)
{
char c = ' ', *to = command_line, *from = COMMAND_LINE;
@@ -326,6 +309,14 @@
p += sprintf(p, "bogomips\t: %lu.%02lu\n\n",
(loops_per_sec+2500)/500000,
((loops_per_sec+2500)/5000) % 100);
+
+#define PRINT_CLOCK(name, value) \
+ p += sprintf(p, name " clock: %d.%02dMHz\n", \
+ ((value) / 1000000), ((value) % 1000000)/10000)
+
+ PRINT_CLOCK("CPU", boot_cpu_data.cpu_clock);
+ PRINT_CLOCK("Bus", boot_cpu_data.bus_clock);
+ PRINT_CLOCK("Peripheral module", boot_cpu_data.module_clock);
return p - buffer;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)