over full virtualization. However, when run without a hypervisor
the kernel is theoretically slower and slightly larger.
+ + config PARAVIRT_CLOCK
+ + bool
+ + default n
+ +
endif
------config MEMTEST_BOOTPARAM
------ bool "Memtest boot parameter"
++++++config MEMTEST
++++++ bool "Memtest"
depends on X86_64
default y
help
void __init tsc_init(void)
{
int cpu;
++ ++++ u64 lpj;
- if (!cpu_has_tsc || tsc_disabled) {
- /* Disable the TSC in case of !cpu_has_tsc */
- tsc_disabled = 1;
+ if (!cpu_has_tsc || tsc_disabled > 0)
return;
- }
cpu_khz = calculate_cpu_khz();
tsc_khz = cpu_khz;
return;
}
++ ++++ lpj = ((u64)tsc_khz * 1000);
++ ++++ do_div(lpj, HZ);
++ ++++ lpj_fine = lpj;
++ ++++
+ /* now allow native_sched_clock() to use rdtsc */
+ tsc_disabled = 0;
+
printk("Detected %lu.%03lu MHz processor.\n",
(unsigned long)cpu_khz / 1000,
(unsigned long)cpu_khz % 1000);