Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20261
b: refs/heads/master
c: 9d2725b
h: refs/heads/master
i:
  20259: 7eaf0de
v: v3
  • Loading branch information
Thomas Renninger authored and Dave Jones committed Feb 2, 2006
1 parent 03f8714 commit 126d021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4472cb3706ceea42797ae1dc79d624026986694
refs/heads/master: 9d2725bb815d915fc6c8531097d9e71b579a8763
5 changes: 5 additions & 0 deletions trunk/arch/i386/kernel/timers/timer_tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
if (val != CPUFREQ_RESUMECHANGE)
write_seqlock_irq(&xtime_lock);
if (!ref_freq) {
if (!freq->old){
ref_freq = freq->new;
goto end;
}
ref_freq = freq->old;
loops_per_jiffy_ref = cpu_data[freq->cpu].loops_per_jiffy;
#ifndef CONFIG_SMP
Expand All @@ -297,6 +301,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
#endif
}

end:
if (val != CPUFREQ_RESUMECHANGE)
write_sequnlock_irq(&xtime_lock);

Expand Down

0 comments on commit 126d021

Please sign in to comment.