1. 03 10月, 2008 2 次提交
  2. 30 9月, 2008 1 次提交
  3. 24 9月, 2008 1 次提交
  4. 23 9月, 2008 8 次提交
    • I
      timers: fix build error in !oneshot case · f8e256c6
      Ingo Molnar 提交于
       kernel/time/tick-common.c: In function ‘tick_setup_periodic’:
       kernel/time/tick-common.c:113: error: implicit declaration of function ‘tick_broadcast_oneshot_active’
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      f8e256c6
    • A
      x86: c1e_idle: don't mark TSC unstable if CPU has invariant TSC · 09bfeea1
      Andreas Herrmann 提交于
      Impact: Functional TSC is marked unstable on AMD family 0x10 and 0x11 CPUs.
      
      This would be wrong because for those CPUs "invariant TSC" means:
      
         "The TSC counts at the same rate in all P-states, all C states, S0,
         or S1"
      
      (See "Processor BIOS and Kernel Developer's Guides" for those CPUs.)
      
      [ tglx: Changed C1E to AMD C1E in the printks to avoid confusion 
      	with Intel C1E ]
      Signed-off-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      09bfeea1
    • T
      x86: prevent C-states hang on AMD C1E enabled machines · a8d68290
      Thomas Gleixner 提交于
      Impact: System hang when AMD C1E machines switch into C2/C3
      
      AMD C1E enabled systems do not work with normal ACPI C-states 
      even if the BIOS is advertising them. Limit the C-states to 
      C1 for the ACPI processor idle code.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      a8d68290
    • T
      clockevents: prevent mode mismatch on cpu online · 27ce4cb4
      Thomas Gleixner 提交于
      Impact: timer hang on CPU online observed on AMD C1E systems
      
      When a CPU is brought online then the broadcast machinery can
      be in the one shot state already. Check this and setup the timer 
      device of the new CPU in one shot mode so the broadcast code
      can pick up the next_event value correctly.
      
      Another AMD C1E oddity, as we switch to broadcast immediately and
      not after the full bring up via the ACPI cpu idle code.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      27ce4cb4
    • T
      clockevents: check broadcast device not tick device · 30274569
      Thomas Gleixner 提交于
      Impact: Possible hang on CPU online observed on AMD C1E machines.
      
      The broadcast setup code looks at the mode of the tick device to
      determine whether it needs to be shut down or setup. This is wrong
      when the broadcast mode is set to one shot already. This can happen
      when a CPU is brought online as it goes through the periodic setup
      first.
      
      The problem went unnoticed as sane systems do not call into that code
      before the switch to one shot for the clock event device happens.
      The AMD C1E idle routine switches over immediately and thereby shuts
      down the just setup device before the first interrupt happens.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      30274569
    • T
      clockevents: prevent stale tick_next_period for onlining CPUs · 49d670fb
      Thomas Gleixner 提交于
      Impact: possible hang on CPU onlining in timer one shot mode.
      
      The tick_next_period variable is only used during boot on nohz/highres
      enabled systems, but for CPU onlining it needs to be maintained when
      the per cpu clock events device operates in one shot mode.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      49d670fb
    • T
      x86: prevent stale state of c1e_mask across CPU offline/online · 4faac97d
      Thomas Gleixner 提交于
      Impact: hang which happens across CPU offline/online on AMD C1E systems.
      
      When a CPU goes offline then the corresponding bit in the broadcast
      mask is cleared. For AMD C1E enabled CPUs we do not reenable the
      broadcast when the CPU comes online again as we do not clear the
      corresponding bit in the c1e_mask, which keeps track which CPUs
      have been switched to broadcast already. So on those !$@#& machines
      we never switch back to broadcasting after a CPU offline/online cycle.
      
      Clear the bit when the CPU plays dead.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      4faac97d
    • T
      clockevents: prevent cpu online to interfere with nohz · 6441402b
      Thomas Gleixner 提交于
      Impact: rare hang which can be triggered on CPU online.
      
      tick_do_timer_cpu keeps track of the CPU which updates jiffies
      via do_timer. The value -1 is used to signal, that currently no
      CPU is doing this. There are two cases, where the variable can 
      have this state:
      
       boot:
          necessary for systems where the boot cpu id can be != 0
      
       nohz long idle sleep:
          When the CPU which did the jiffies update last goes into
          a long idle sleep it drops the update jiffies duty so
          another CPU which is not idle can pick it up and keep
          jiffies going.
      
      Using the same value for both situations is wrong, as the CPU online
      code can see the -1 state when the timer of the newly onlined CPU is
      setup. The setup for a newly onlined CPU goes through periodic mode
      and can pick up the do_timer duty without being aware of the nohz /
      highres mode of the already running system.
      
      Use two separate states and make them constants to avoid magic
      numbers confusion. 
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      6441402b
  5. 22 9月, 2008 7 次提交
  6. 21 9月, 2008 4 次提交
  7. 20 9月, 2008 17 次提交