Commit 1725037f authored by Ingo Molnar's avatar Ingo Molnar

x86: set_cyc2ns_scale() remove prev scale

Peter Zijlstra pointed out that it's unused.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent b447a468
...@@ -84,8 +84,8 @@ DEFINE_PER_CPU(unsigned long, cyc2ns); ...@@ -84,8 +84,8 @@ DEFINE_PER_CPU(unsigned long, cyc2ns);
static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu) static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)
{ {
unsigned long flags, prev_scale, *scale;
unsigned long long tsc_now, ns_now; unsigned long long tsc_now, ns_now;
unsigned long flags, *scale;
local_irq_save(flags); local_irq_save(flags);
sched_clock_idle_sleep_event(); sched_clock_idle_sleep_event();
...@@ -95,7 +95,6 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu) ...@@ -95,7 +95,6 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)
rdtscll(tsc_now); rdtscll(tsc_now);
ns_now = __cycles_2_ns(tsc_now); ns_now = __cycles_2_ns(tsc_now);
prev_scale = *scale;
if (cpu_khz) if (cpu_khz)
*scale = (NSEC_PER_MSEC << CYC2NS_SCALE_FACTOR)/cpu_khz; *scale = (NSEC_PER_MSEC << CYC2NS_SCALE_FACTOR)/cpu_khz;
......
...@@ -44,8 +44,8 @@ DEFINE_PER_CPU(unsigned long, cyc2ns); ...@@ -44,8 +44,8 @@ DEFINE_PER_CPU(unsigned long, cyc2ns);
static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu) static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)
{ {
unsigned long flags, prev_scale, *scale;
unsigned long long tsc_now, ns_now; unsigned long long tsc_now, ns_now;
unsigned long flags, *scale;
local_irq_save(flags); local_irq_save(flags);
sched_clock_idle_sleep_event(); sched_clock_idle_sleep_event();
...@@ -55,7 +55,6 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu) ...@@ -55,7 +55,6 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)
rdtscll(tsc_now); rdtscll(tsc_now);
ns_now = __cycles_2_ns(tsc_now); ns_now = __cycles_2_ns(tsc_now);
prev_scale = *scale;
if (cpu_khz) if (cpu_khz)
*scale = (NSEC_PER_MSEC << CYC2NS_SCALE_FACTOR)/cpu_khz; *scale = (NSEC_PER_MSEC << CYC2NS_SCALE_FACTOR)/cpu_khz;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment