1. 26 9月, 2012 22 次提交
  2. 10 9月, 2012 1 次提交
  3. 08 8月, 2012 4 次提交
  4. 30 7月, 2012 2 次提交
  5. 26 7月, 2012 4 次提交
  6. 20 7月, 2012 4 次提交
  7. 17 7月, 2012 2 次提交
    • H
      s390/cpu init: use __get_cpu_var instead of per_cpu · 50bb1f76
      Heiko Carstens 提交于
      Just saves a couple of instructions.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      50bb1f76
    • H
      s390/idle: fix sequence handling vs cpu hotplug · 0008204f
      Heiko Carstens 提交于
      The s390 idle accounting code uses a sequence counter which gets used
      when the per cpu idle statistics get updated and read.
      
      One assumption on read access is that only when the sequence counter is
      even and did not change while reading all values the result is valid.
      On cpu hotplug however the per cpu data structure gets initialized via
      a cpu hotplug notifier on CPU_ONLINE.
      CPU_ONLINE however is too late, since the onlined cpu is already running
      and might access the per cpu data. Worst case is that the data structure
      gets initialized while an idle thread is updating its idle statistics.
      This will result in an uneven sequence counter after an update.
      
      As a result user space tools like top, which access /proc/stat in order
      to get idle stats, will busy loop waiting for the sequence counter to
      become even again, which will never happen until the queried cpu will
      update its idle statistics again. And even then the sequence counter
      will only have an even value for a couple of cpu cycles.
      
      Fix this by moving the initialization of the per cpu idle statistics
      to cpu_init(). I prefer that solution in favor of changing the
      notifier to CPU_UP_PREPARE, which would be a different solution to
      the problem.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      0008204f
  8. 04 7月, 2012 1 次提交