1. 26 9月, 2012 1 次提交
  2. 20 7月, 2012 1 次提交
    • H
      s390/comments: unify copyright messages and remove file names · a53c8fab
      Heiko Carstens 提交于
      Remove the file name from the comment at top of many files. In most
      cases the file name was wrong anyway, so it's rather pointless.
      
      Also unify the IBM copyright statement. We did have a lot of sightly
      different statements and wanted to change them one after another
      whenever a file gets touched. However that never happened. Instead
      people start to take the old/"wrong" statements to use as a template
      for new files.
      So unify all of them in one go.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      a53c8fab
  3. 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
  4. 30 10月, 2011 1 次提交
    • M
      [S390] avoid warning in show_cpuinfo · dd4a5a31
      Martin Schwidefsky 提交于
      The .start function and indirectly the .next function of the show_cpuinfo
      sequential operation uses NR_CPUS as limit instead of nr_cpu_ids.
      This can cause warnings like this:
      
      WARNING: at /usr/src/linux/include/linux/cpumask.h:107
      Process lscpu (pid: 575, task: 000000007deb4338, ksp: 000000007794f588)
      Krnl PSW : 0704000180000000 0000000000106db4 (show_cpuinfo+0x108/0x234)
                 R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:0 PM:0 EA:3
      Krnl GPRS: 0000000000000003 0000000000791988 000000000071b478 0000000000000004
                 0000000000000001 0000000000000000 000000007d139500 0000000000000400
                 0000000000000000 000000000070e24c 000000007d48d600 0000000000000005
                 000000007d48d600 00000000004dfa10 0000000000106cf8 000000007794fcc0
      Krnl Code: 0000000000106da8: 95001000           cli     0(%r1),0
                 0000000000106dac: a774ffac           brc     7,106d04
                 0000000000106db0: a7f40001           brc     15,106db2
                >0000000000106db4: 92011000           mvi     0(%r1),1
                 0000000000106db8: a7f4ffa6           brc     15,106d04
                 0000000000106dbc: c0e5000065b4       brasl   %r14,113924
                 0000000000106dc2: c09000303a45       larl    %r9,70e24c
                 0000000000106dc8: c020001eefd4       larl    %r2,4e4d70
      
      Replacing NR_CPUS with nr_cpu_ids fixes it.
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      dd4a5a31
  5. 05 1月, 2011 3 次提交
  6. 25 10月, 2010 1 次提交
  7. 17 5月, 2010 1 次提交
  8. 14 10月, 2009 1 次提交
  9. 26 3月, 2009 2 次提交
  10. 25 12月, 2008 1 次提交