linuxppc_2_4_devel patch to arch/ppc/kernel/setup.c
This is a minor patch to move the default setting of the default loops_per_jiffy to before the call to platform_init(). This would be necessary if someone required a reasonable value for loops_per_jiffy so that their progress output would work (e.g., polled UART I/O that required a udelay() call). Ideally, this should never be necessary since the board-specific platform_init() should set it up correctly. This is just in case.
Mark
P.S., I would almost prefer just getting rid of the default loops_per_jiffy setup. Anyone else?
--
===== arch/ppc/kernel/setup.c 1.119 vs edited =====
arch/ppc/kernel/setup.c +3 -3
@@ -513,6 +513,9 @@strcpy (cmd_line,CONFIG_CMDLINE );#endif /* CONFIG_CMDLINE */ +/* so udelay does something sensible, assume <= 1000 bogomips */ + loops_per_jiffy =500000000 /HZ ; +platform_init (r3, r4, r5, r6, r7);if (ppc_md.progress_init)
@@ -558,9 +561,6 @@extern char _etext[], _edata[];extern char *klimit;extern void do_init_bootmem (void ); - -/* so udelay does something sensible, assume <= 1000 bogomips */ - loops_per_jiffy =500000000 /HZ ;#ifdef CONFIG_ALL_PPC /* This could be called "early setup arch", it must be done