1. 03 1月, 2018 1 次提交
  2. 14 5月, 2017 1 次提交
  3. 10 12月, 2016 6 次提交
  4. 14 10月, 2015 1 次提交
  5. 27 5月, 2015 1 次提交
  6. 10 3月, 2015 1 次提交
  7. 20 10月, 2014 1 次提交
  8. 01 5月, 2014 1 次提交
  9. 20 3月, 2014 1 次提交
    • S
      hwmon, coretemp: Fix CPU hotplug callback registration · 3289705f
      Srivatsa S. Bhat 提交于
      Subsystems that want to register CPU hotplug callbacks, as well as perform
      initialization for the CPUs that are already online, often do it as shown
      below:
      
      	get_online_cpus();
      
      	for_each_online_cpu(cpu)
      		init_cpu(cpu);
      
      	register_cpu_notifier(&foobar_cpu_notifier);
      
      	put_online_cpus();
      
      This is wrong, since it is prone to ABBA deadlocks involving the
      cpu_add_remove_lock and the cpu_hotplug.lock (when running concurrently
      with CPU hotplug operations).
      
      Instead, the correct and race-free way of performing the callback
      registration is:
      
      	cpu_notifier_register_begin();
      
      	for_each_online_cpu(cpu)
      		init_cpu(cpu);
      
      	/* Note the use of the double underscored version of the API */
      	__register_cpu_notifier(&foobar_cpu_notifier);
      
      	cpu_notifier_register_done();
      
      Fix the hwmon coretemp code by using this latter form of callback
      registration.
      
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Jean Delvare <jdelvare@suse.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      3289705f
  10. 04 3月, 2014 3 次提交
  11. 15 1月, 2014 5 次提交
  12. 12 8月, 2013 1 次提交
  13. 15 7月, 2013 1 次提交
    • P
      hwmon: delete __cpuinit usage from all hwmon files · d23e2ae1
      Paul Gortmaker 提交于
      The __cpuinit type of throwaway sections might have made sense
      some time ago when RAM was more constrained, but now the savings
      do not offset the cost and complications.  For example, the fix in
      commit 5e427ec2 ("x86: Fix bit corruption at CPU resume time")
      is a good example of the nasty type of bugs that can be created
      with improper use of the various __init prefixes.
      
      After a discussion on LKML[1] it was decided that cpuinit should go
      the way of devinit and be phased out.  Once all the users are gone,
      we can then finally remove the macros themselves from linux/init.h.
      
      This removes all the drivers/hwmon uses of the __cpuinit macros
      from all C files.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: lm-sensors@lm-sensors.org
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      d23e2ae1
  14. 22 6月, 2013 1 次提交
  15. 08 4月, 2013 1 次提交
    • G
      hwmon: Fix checkpatch warning 'quoted string split across lines' · b55f3757
      Guenter Roeck 提交于
      Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Juerg Haefliger <juergh@gmail.com>
      Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Jim Cromie <jim.cromie@gmail.com>
      Cc: Roger Lucas <vt8231@hiddenengine.co.uk>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      b55f3757
  16. 26 1月, 2013 1 次提交
  17. 06 12月, 2012 3 次提交
  18. 29 11月, 2012 3 次提交
  19. 15 10月, 2012 1 次提交
  20. 24 9月, 2012 1 次提交
    • S
      hwmon: (coretemp) Use get_online_cpus to avoid races involving CPU hotplug · 641f1456
      Silas Boyd-Wickizer 提交于
      coretemp_init loops with for_each_online_cpu, adding platform_devices
      and sysfs interfaces, then calls register_hotcpu_notifier.  There is a
      race if a CPU is offlined or onlined after the loop, but before
      register_hotcpu_notifier.  The race might result in the absence of a
      platform_device+sysfs interface for an online CPU, or the presence of
      a platform_device+sysfs interface for an offline CPU.  A similar race
      occurs during coretemp_exit, after the module calls
      unregister_hotcpu_notifier, but before it unregisters all devices, a
      CPU might offline and a device for an offline CPU will exist for a
      short while.
      
      This fix surrounds for_each_online_cpu and register_hotcpu_notifier
      with get_online_cpus+put_online_cpus; and surrounds
      unregister_hotcpu_notifier and device unregistering with
      get_online_cpus+put_online_cpus.
      
      Build tested.
      Signed-off-by: NSilas Boyd-Wickizer <sbw@mit.edu>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      641f1456
  21. 19 8月, 2012 1 次提交
  22. 30 7月, 2012 1 次提交
  23. 26 6月, 2012 1 次提交
  24. 18 6月, 2012 2 次提交