Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88691
b: refs/heads/master
c: 3c2047c
h: refs/heads/master
i:
  88689: 97cd913
  88687: 633fad8
v: v3
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Apr 17, 2008
1 parent 5de2029 commit 7028b90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9fc34113f6880b215cbea4e7017fc818700384c2
refs/heads/master: 3c2047cd32b1a8c782d7efab72707e7daa251625
13 changes: 5 additions & 8 deletions trunk/arch/x86/kernel/tsc_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,15 @@ void __init tsc_init(void)
int cpu;

if (!cpu_has_tsc)
goto out_no_tsc;
return;

cpu_khz = calculate_cpu_khz();
tsc_khz = cpu_khz;

if (!cpu_khz)
goto out_no_tsc;
if (!cpu_khz) {
mark_tsc_unstable("could not calculate TSC khz");
return;
}

printk("Detected %lu.%03lu MHz processor.\n",
(unsigned long)cpu_khz / 1000,
Expand Down Expand Up @@ -431,9 +433,4 @@ void __init tsc_init(void)
tsc_enabled = 1;

clocksource_register(&clocksource_tsc);

return;

out_no_tsc:
setup_clear_cpu_cap(X86_FEATURE_TSC);
}

0 comments on commit 7028b90

Please sign in to comment.