add write_seqlock to cpufreq change notifier for TSC

add write_seqlock to cpufreq change notifier for TSC

Post by Stephen Hemminge » Thu, 20 Mar 2003 01:10:07



The CPU frequency change detection code can change the values used to
compute time of day with TSC; but there was no locking around it.

--- timer_tsc.c.orig    2003-03-18 14:52:25.000000000 -0800

 {
        struct cpufreq_freqs *freq = data;

+       write_seqlock(&xtime_lock);
        if (!ref_freq) {
                ref_freq = freq->old;

                }
 #endif
        }
+       write_sequnlock(&xtime_lock);

        return 0;
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/