]> Git Repo - linux.git/commitdiff
Merge tag 'v3.18-rc1' into x86/urgent
authorH. Peter Anvin <[email protected]>
Fri, 24 Oct 2014 20:26:37 +0000 (13:26 -0700)
committerH. Peter Anvin <[email protected]>
Fri, 24 Oct 2014 20:26:37 +0000 (13:26 -0700)
Reason:
Need to apply audit patch on top of v3.18-rc1.

Signed-off-by: H. Peter Anvin <[email protected]>
1  2 
arch/x86/kernel/apic/apic.c

index 24b5894396a06c76b073435f52143f5ca420748f,00853b254ab09c36afdb2a681bd9c68037ac17dc..ba6cc041edb12e23a783fc0c5aaaed788af39dc0
@@@ -561,7 -561,7 +561,7 @@@ static DEFINE_PER_CPU(struct clock_even
   */
  static void setup_APIC_timer(void)
  {
-       struct clock_event_device *levt = &__get_cpu_var(lapic_events);
+       struct clock_event_device *levt = this_cpu_ptr(&lapic_events);
  
        if (this_cpu_has(X86_FEATURE_ARAT)) {
                lapic_clockevent.features &= ~CLOCK_EVT_FEAT_C3STOP;
@@@ -696,7 -696,7 +696,7 @@@ calibrate_by_pmtimer(long deltapm, lon
  
  static int __init calibrate_APIC_clock(void)
  {
-       struct clock_event_device *levt = &__get_cpu_var(lapic_events);
+       struct clock_event_device *levt = this_cpu_ptr(&lapic_events);
        void (*real_handler)(struct clock_event_device *dev);
        unsigned long deltaj;
        long delta, deltatsc;
@@@ -1297,7 -1297,7 +1297,7 @@@ void setup_local_APIC(void
        unsigned int value, queued;
        int i, j, acked = 0;
        unsigned long long tsc = 0, ntsc;
 -      long long max_loops = cpu_khz;
 +      long long max_loops = cpu_khz ? cpu_khz : 1000000;
  
        if (cpu_has_tsc)
                rdtscll(tsc);
                        break;
                }
                if (queued) {
 -                      if (cpu_has_tsc) {
 +                      if (cpu_has_tsc && cpu_khz) {
                                rdtscll(ntsc);
                                max_loops = (cpu_khz << 10) - (ntsc - tsc);
                        } else
This page took 0.060264 seconds and 4 git commands to generate.