Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39711
b: refs/heads/master
c: 3f4a0b9
h: refs/heads/master
i:
  39709: 28802e1
  39707: cfff1fd
  39703: f5288a8
  39695: 219f455
  39679: 1d66859
v: v3
  • Loading branch information
john stultz authored and Linus Torvalds committed Oct 17, 2006
1 parent 6b10c08 commit ae1990a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: b9f5d8040b470e4f74e3266ece2969ef06d0f8aa
refs/heads/master: 3f4a0b917ce72ef47e438d354c433eb645218e87
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/i8253.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static struct clocksource clocksource_pit = {

static int __init init_pit_clocksource(void)
{
if (num_possible_cpus() > 4) /* PIT does not scale! */
if (num_possible_cpus() > 1) /* PIT does not scale! */
return 0;

clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE, 20);
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/i386/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ static int tsc_update_callback(void)
int change = 0;

/* check to see if we should switch to the safe clocksource: */
if (clocksource_tsc.rating != 50 && check_tsc_unstable()) {
clocksource_tsc.rating = 50;
if (clocksource_tsc.rating != 0 && check_tsc_unstable()) {
clocksource_tsc.rating = 0;
clocksource_reselect();
change = 1;
}
Expand Down Expand Up @@ -461,7 +461,7 @@ static int __init init_tsc_clocksource(void)
clocksource_tsc.shift);
/* lower the rating if we already know its unstable: */
if (check_tsc_unstable())
clocksource_tsc.rating = 50;
clocksource_tsc.rating = 0;

init_timer(&verify_tsc_freq_timer);
verify_tsc_freq_timer.function = verify_tsc_freq;
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/time/jiffies.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static cycle_t jiffies_read(void)

struct clocksource clocksource_jiffies = {
.name = "jiffies",
.rating = 0, /* lowest rating*/
.rating = 1, /* lowest valid rating*/
.read = jiffies_read,
.mask = 0xffffffff, /*32bits*/
.mult = NSEC_PER_JIFFY << JIFFIES_SHIFT, /* details above */
Expand Down

0 comments on commit ae1990a

Please sign in to comment.