Skip to content

Commit

Permalink
x86/platform/intel/mid: Remove dead code
Browse files Browse the repository at this point in the history
Neither ratio nor fsb are ever zero, so remove the 0 case.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Alan authored and Ingo Molnar committed Feb 17, 2016
1 parent 605a46e commit 8f8e2ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions arch/x86/platform/intel-mid/mfld.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ static unsigned long __init mfld_calibrate_tsc(void)
/* mark tsc clocksource as reliable */
set_cpu_cap(&boot_cpu_data, X86_FEATURE_TSC_RELIABLE);

if (fast_calibrate)
return fast_calibrate;

return 0;
return fast_calibrate;
}

static void __init penwell_arch_setup(void)
Expand Down
5 changes: 1 addition & 4 deletions arch/x86/platform/intel-mid/mrfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ static unsigned long __init tangier_calibrate_tsc(void)
/* mark tsc clocksource as reliable */
set_cpu_cap(&boot_cpu_data, X86_FEATURE_TSC_RELIABLE);

if (fast_calibrate)
return fast_calibrate;

return 0;
return fast_calibrate;
}

static void __init tangier_arch_setup(void)
Expand Down

0 comments on commit 8f8e2ae

Please sign in to comment.