1. 10 10月, 2012 1 次提交
  2. 22 7月, 2012 1 次提交
  3. 21 5月, 2012 1 次提交
  4. 19 3月, 2012 2 次提交
  5. 26 5月, 2011 1 次提交
  6. 29 10月, 2010 1 次提交
  7. 25 8月, 2010 1 次提交
    • A
      hwmon: (k8temp) Differentiate between AM2 and ASB1 · a05e93f3
      Andreas Herrmann 提交于
      Commit 8bf0223ed515be24de0c671eedaff49e78bebc9c (hwmon, k8temp: Fix
      temperature reporting for ASB1 processor revisions) fixed temperature
      reporting for ASB1 CPUs. But those CPU models (model 0x6b, 0x6f, 0x7f)
      were packaged both as AM2 (desktop) and ASB1 (mobile). Thus the commit
      leads to wrong temperature reporting for AM2 CPU parts.
      
      The solution is to determine the package type for models 0x6b, 0x6f,
      0x7f.
      
      This is done using BrandId from CPUID Fn8000_0001_EBX[15:0]. See
      "Constructing the processor Name String" in "Revision Guide for AMD
      NPT Family 0Fh Processors" (Rev. 3.46).
      
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: stable@kernel.org [.32.x, .33.x, .34.x, .35.x]
      Reported-by: NVladislav Guberinic <neosisani@gmail.com>
      Signed-off-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      a05e93f3
  8. 15 8月, 2010 1 次提交
    • J
      hwmon: (k8temp) Adjust confusing if indentation · df149d02
      Julia Lawall 提交于
      Move the if(err) statement after the if into the if branch indicated by its
      indentation.  The preceding if(err) test implies that err cannot be nonzero
      unless the if branch is taken.
      
      The semantic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable braces5@
      position p1,p2;
      statement S1,S2;
      @@
      
      (
      if (...) { ... }
      |
      if (...) S1@p1 S2@p2
      )
      
      @script:python@
      p1 << r.p1;
      p2 << r.p2;
      @@
      
      if (p1[0].column == p2[0].column):
       cocci.print_main("branch",p4)
       cocci.print_secs("after",p5)
      // </smpl>  
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      df149d02
  9. 09 7月, 2010 1 次提交
    • A
      hwmon: (k8temp) Fix temperature reporting for ASB1 processor revisions · d535bad9
      Andreas Herrmann 提交于
      Reported temperature for ASB1 CPUs is too high.
      Add ASB1 CPU revisions (these are also non-desktop variants) to the
      list of CPUs for which the temperature fixup is not required.
      
      Example: (from LENOVO ThinkPad Edge 13, 01972NG, system was idle)
      
        Current kernel reports
      
        $ sensors
        k8temp-pci-00c3
        Adapter: PCI adapter
        Core0 Temp:  +74.0 C
        Core0 Temp:  +70.0 C
        Core1 Temp:  +69.0 C
        Core1 Temp:  +70.0 C
      
        With this patch I have
      
        $ sensors
        k8temp-pci-00c3
        Adapter: PCI adapter
        Core0 Temp:  +54.0 C
        Core0 Temp:  +51.0 C
        Core1 Temp:  +48.0 C
        Core1 Temp:  +49.0 C
      
      Cc: stable@kernel.org [.32.x .33.x, .34.x]
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Signed-off-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      d535bad9
  10. 20 6月, 2010 1 次提交
    • J
      hwmon: (k8temp) Bypass core swapping on single-core processors · cd4de21f
      Jean Delvare 提交于
      Commit a2e066bb introduced core
      swapping for CPU models 64 and later. I recently had a report about
      a Sempron 3200+, model 95, for which this patch broke temperature
      reading. It happens that this is a single-core processor, so the
      effect of the swapping was to read a temperature value for a core
      that didn't exist, leading to an incorrect value (-49 degrees C.)
      
      Disabling core swapping on singe-core processors should fix this.
      
      Additional comment from Andreas:
      
      The BKDG says
      
        Thermal Sensor Core Select (ThermSenseCoreSel)-Bit 2. This bit
        selects the CPU whose temperature is reported in the CurTemp
        field. This bit only applies to dual core processors. For
        single core processors CPU0 Thermal Sensor is always selected.
      
      k8temp_probe() correctly detected that SEL_CORE can't be used on single
      core CPU. Thus k8temp did never update the temperature values stored
      in temp[1][x] and -49 degrees was reported. For single core CPUs we
      must use the values read into temp[0][x].
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Tested-by: NRick Moritz <rhavin@gmx.net>
      Acked-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
      Cc: stable@kernel.org
      cd4de21f
  11. 11 1月, 2010 1 次提交
    • M
      hwmon: Make PCI device ids constant · 3dd3a156
      Márton Németh 提交于
      The id_table field of the struct pci_driver is constant in <linux/pci.h>
      so it is worth to make pci_device_id also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      3dd3a156
  12. 16 1月, 2009 3 次提交
  13. 10 10月, 2007 1 次提交
  14. 13 12月, 2006 1 次提交
  15. 29 9月, 2006 2 次提交