Skip to contentSkip to conversation

2.4.16 kernel/printk.c (per processorinitializationcheck)

PATCH Manfred Spraul 1 participant 1 message Dec 8, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Alan Cox

x86_udelay_tsc wont have been set at that point so the main timer is still being used.

No. x86_udelay_tsc is initialized by time_init(), and time_init() is called before smp_init(). The udelay implementation only multiplies with loops_per_jiffy, therefore there is no oops on i386.

But could oops if the bios disables the TSC instruction - the first printk on the secondary cpu happens before

     clear_in_cr4(X86_CR4_VME|X86_CR4_PVI|X86_CR4_TSD|X86_CR4_DE)

--
Manfred