1. 27 5月, 2011 2 次提交
    • G
      hwmon: (coretemp) Update comments describing the handling of HT CPUs · 6777b9e4
      Guenter Roeck 提交于
      Update comments describing the handling of HT CPUs based on review feedback.
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      6777b9e4
    • S
      hwmon: (coretemp) Initialize sysfs attributes · 4258781a
      Sergey Senozhatsky 提交于
      Initialize sysfs attrs before device_create_file() call to suppress lockdep_init_map()
      warning:
      
      [    3.653628] WARNING: at kernel/lockdep.c:2885 lockdep_init_map+0xea/0x43c()
      [    3.653698] Modules linked in:
      [    3.654835] Pid: 1, comm: swapper Not tainted 2.6.39-dbg-git8-05624-g46187f8 #576
      [    3.656014] Call Trace:
      [    3.657139]  [<ffffffff8103e4b4>] warn_slowpath_common+0x7e/0x96
      [    3.658298]  [<ffffffff8103e4e1>] warn_slowpath_null+0x15/0x17
      [    3.659460]  [<ffffffff8106d7b9>] lockdep_init_map+0xea/0x43c
      [    3.660616]  [<ffffffff81163c1a>] sysfs_add_file_mode+0x5d/0xa8
      [    3.661785]  [<ffffffff81163c71>] sysfs_add_file+0xc/0xe
      [    3.662929]  [<ffffffff81163d26>] sysfs_create_file+0x23/0x25
      [    3.664045]  [<ffffffff813724d1>] device_create_file+0x14/0x16
      [    3.665172]  [<ffffffff81460ed4>] coretemp_probe+0xf9/0x185
      [    3.666306]  [<ffffffff8137638e>] platform_drv_probe+0x12/0x14
      [    3.667420]  [<ffffffff81375321>] driver_probe_device+0xb0/0x14b
      [    3.668542]  [<ffffffff8137546d>] __device_attach+0x35/0x3a
      [    3.669710]  [<ffffffff81375438>] ? __driver_attach+0x7c/0x7c
      [    3.670816]  [<ffffffff8137426b>] bus_for_each_drv+0x54/0x88
      [    3.671921]  [<ffffffff81375231>] device_attach+0x77/0x9b
      [    3.673027]  [<ffffffff81374aef>] bus_probe_device+0x22/0x39
      [    3.674137]  [<ffffffff81373235>] device_add+0x3c1/0x550
      [    3.675249]  [<ffffffff81371ed9>] ? dev_set_name+0x3c/0x3e
      [    3.676371]  [<ffffffff813769f3>] platform_device_add+0x10c/0x156
      [    3.677491]  [<ffffffff8146af9c>] get_core_online+0xab/0x16e
      [    3.678608]  [<ffffffff81ad8070>] coretemp_init+0x4b/0x80
      [    3.679724]  [<ffffffff81ad8025>] ? hwmon_init+0xee/0xee
      [    3.680853]  [<ffffffff8100020a>] do_one_initcall+0x7a/0x13c
      [    3.681975]  [<ffffffff81aaac74>] kernel_init+0xe1/0x15b
      [    3.683081]  [<ffffffff8147e4e4>] kernel_thread_helper+0x4/0x10
      [    3.684174]  [<ffffffff8102d48c>] ? finish_task_switch+0x76/0xf0
      [    3.685266]  [<ffffffff81477918>] ? retint_restore_args+0x13/0x13
      [    3.686356]  [<ffffffff81aaab93>] ? start_kernel+0x3ee/0x3ee
      [    3.687425]  [<ffffffff8147e4e0>] ? gs_change+0x13/0x13
      [    3.688489] ---[ end trace 7392ad3e6a92ae39 ]---
      Signed-off-by: NSergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      4258781a
  2. 24 5月, 2011 2 次提交
  3. 21 5月, 2011 1 次提交
  4. 20 5月, 2011 1 次提交
  5. 09 1月, 2011 1 次提交
  6. 26 10月, 2010 5 次提交
  7. 28 9月, 2010 1 次提交
  8. 25 9月, 2010 3 次提交
  9. 25 8月, 2010 1 次提交
    • J
      hwmon: (coretemp) Fix harmless build warning · 45ff34d3
      Jean Delvare 提交于
      Fix the following build warning:
      
        CC [M]  drivers/hwmon/coretemp.o
      drivers/hwmon/coretemp.c: In function "coretemp_init":
      drivers/hwmon/coretemp.c:521: warning: unused variable "n"
      drivers/hwmon/coretemp.c:521: warning: unused variable "p"
      
      Introduced by commit 851b29cb. When
      you drop code, you also have to drop the variables this code was
      using.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Chen Gong <gong.chen@linux.intel.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Huaxu Wan <huaxu.wan@intel.com>
      45ff34d3
  10. 11 8月, 2010 1 次提交
  11. 10 8月, 2010 3 次提交
  12. 09 7月, 2010 2 次提交
  13. 25 5月, 2010 2 次提交
  14. 30 3月, 2010 2 次提交
  15. 11 1月, 2010 1 次提交
  16. 24 9月, 2009 3 次提交
  17. 22 9月, 2009 1 次提交
  18. 15 8月, 2008 1 次提交
  19. 18 2月, 2008 3 次提交
  20. 17 2月, 2008 1 次提交
  21. 04 12月, 2007 1 次提交
    • R
      HWMON: coretemp, suspend fix · 561d9a96
      Rafael J. Wysocki 提交于
      It's not permitted to unregister a device after devices have been suspended.
      It causes deadlocks to appear on systems with coretemp hwmon loaded.  To avoid
      this, we can make coretemp_cpu_callback() do nothing if the _FROZEN bit is set
      in action.
       
      Also, in other cases it's generally too late to unregister the coretemp device
      if the CPU is already dead, so it should be unregistered on CPU_DOWN_PREPARE.
       
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NMark M. Hoffman <mhoffman@lightlink.com>
      Cc: Jiri Slaby <jirislaby@gmail.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      561d9a96
  22. 20 10月, 2007 1 次提交
    • M
      x86: convert cpuinfo_x86 array to a per_cpu array · 92cb7612
      Mike Travis 提交于
      cpu_data is currently an array defined using NR_CPUS.  This means that
      we overallocate since we will rarely really use maximum configured cpus.
      When NR_CPU count is raised to 4096 the size of cpu_data becomes
      3,145,728 bytes.
      
      These changes were adopted from the sparc64 (and ia64) code.  An
      additional field was added to cpuinfo_x86 to be a non-ambiguous cpu
      index.  This corresponds to the index into a cpumask_t as well as the
      per_cpu index.  It's used in various places like show_cpuinfo().
      
      cpu_data is defined to be the boot_cpu_data structure for the NON-SMP
      case.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Acked-by: NChristoph Lameter <clameter@sgi.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      92cb7612
  23. 10 10月, 2007 1 次提交