search for: use_tsc

Displaying 4 results from an estimated 4 matches for "use_tsc".

2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...g long cycles_2_ns(unsigned long long cyc) -{ - return (cyc * cyc2ns_scale) >> CYC2NS_SCALE_FACTOR; -} - static int count2; /* counter for mark_offset_tsc() */ /* Cached *multiplier* to convert TSC counts to microseconds. @@ -305,7 +272,7 @@ time_cpufreq_notifier(struct notifier_bl if (use_tsc) { if (!(freq->flags & CPUFREQ_CONST_LOOPS)) { fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq); - set_cyc2ns_scale(cpu_khz); + set_cyc_scales(cpu_khz); } } #endif @@ -540,6 +507,7 @@ static int __init init_tsc(char* overrid...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...g long cycles_2_ns(unsigned long long cyc) -{ - return (cyc * cyc2ns_scale) >> CYC2NS_SCALE_FACTOR; -} - static int count2; /* counter for mark_offset_tsc() */ /* Cached *multiplier* to convert TSC counts to microseconds. @@ -305,7 +272,7 @@ time_cpufreq_notifier(struct notifier_bl if (use_tsc) { if (!(freq->flags & CPUFREQ_CONST_LOOPS)) { fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq); - set_cyc2ns_scale(cpu_khz); + set_cyc_scales(cpu_khz); } } #endif @@ -540,6 +507,7 @@ static int __init init_tsc(char* overrid...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
..."io_ports.h" #include "mach_timer.h" +#include "mach_schedclock.h" #include <asm/hpet.h> #include <asm/i8253.h> @@ -36,6 +37,7 @@ static inline void cpufreq_delayed_get(v int tsc_disable __devinitdata = 0; +int use_sched_clock_cycles; static int use_tsc; /* Number of usecs that the last interrupt was delayed */ static int delay_at_last_interrupt; @@ -116,23 +118,17 @@ static unsigned long long monotonic_cloc */ unsigned long long sched_clock(void) { - unsigned long long this_offset; - /* * In the NUMA case we dont use the TSC as they ar...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
..."io_ports.h" #include "mach_timer.h" +#include "mach_schedclock.h" #include <asm/hpet.h> #include <asm/i8253.h> @@ -36,6 +37,7 @@ static inline void cpufreq_delayed_get(v int tsc_disable __devinitdata = 0; +int use_sched_clock_cycles; static int use_tsc; /* Number of usecs that the last interrupt was delayed */ static int delay_at_last_interrupt; @@ -116,23 +118,17 @@ static unsigned long long monotonic_cloc */ unsigned long long sched_clock(void) { - unsigned long long this_offset; - /* * In the NUMA case we dont use the TSC as they ar...