1. 01 8月, 2015 3 次提交
  2. 28 7月, 2015 12 次提交
  3. 27 7月, 2015 1 次提交
  4. 26 7月, 2015 2 次提交
  5. 25 7月, 2015 3 次提交
    • S
      cpufreq: Remove cpufreq_rwsem · 454d3a25
      Sebastian Andrzej Siewior 提交于
      cpufreq_rwsem was introduced in commit 6eed9404 ("cpufreq: Use
      rwsem for protecting critical sections) in order to replace
      try_module_get() on the cpu-freq driver. That try_module_get() worked
      well until the refcount was so heavily used that module removal became
      more or less impossible.
      
      Though when looking at the various (undocumented) protection
      mechanisms in that code, the randomly sprinkeled around cpufreq_rwsem
      locking sites are superfluous.
      
      The policy, which is acquired in cpufreq_cpu_get() and released in
      cpufreq_cpu_put() is sufficiently protected already.
      
        cpufreq_cpu_get(cpu)
          /* Protects against concurrent driver removal */
          read_lock_irqsave(&cpufreq_driver_lock, flags);
          policy = per_cpu(cpufreq_cpu_data, cpu);
          kobject_get(&policy->kobj);
          read_unlock_irqrestore(&cpufreq_driver_lock, flags);
      
      The reference on the policy serializes versus module unload already:
      
        cpufreq_unregister_driver()
          subsys_interface_unregister()
            __cpufreq_remove_dev_finish()
              per_cpu(cpufreq_cpu_data) = NULL;
      	cpufreq_policy_put_kobj()
      
      If there is a reference held on the policy, i.e. obtained prior to the
      unregister call, then cpufreq_policy_put_kobj() will wait until that
      reference is dropped. So once subsys_interface_unregister() returns
      there is no policy pointer in flight and no new reference can be
      obtained. So that rwsem protection is useless.
      
      The other usage of cpufreq_rwsem in show()/store() of the sysfs
      interface is redundant as well because sysfs already does the proper
      kobject_get()/put() pairs.
      
      That leaves CPU hotplug versus module removal. The current
      down_write() around the write_lock() in cpufreq_unregister_driver() is
      silly at best as it protects actually nothing.
      
      The trivial solution to this is to prevent hotplug across
      cpufreq_unregister_driver completely.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      454d3a25
    • B
      Input: goodix - fix touch coordinates on WinBook TW100 and TW700 · 8b5a359c
      Bastien Nocera 提交于
      The touchscreen on the WinBook TW100 and TW700 don't match the default
      display, with 0,0 touches being reported when touching at the bottom
      right of the screen.
      
        1280,800             0,800
               +-------------+
               |             |
               |             |
               |             |
               +-------------+
          1280,0             0,0
      
      It's unfortunately impossible to detect this problem with data from the
      DSDT, or other auxiliary metadata, so fallback to quirking this specific
      model of tablet instead.
      Signed-off-by: NBastien Nocera <hadess@hadess.net>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      8b5a359c
    • D
      Input: LEDs - skip unnamed LEDs · b38ebd1d
      Dmitry Torokhov 提交于
      Devices may declare more LEDs than what is known to input-leds
      (HID does this for some devices). Instead of showing ugly warnings
      on connect and, even worse, oopsing on disconnect, let's simply
      ignore LEDs that are not known to us.
      Reported-and-tested-by: NVlastimil Babka <vbabka@suse.cz>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      b38ebd1d
  6. 24 7月, 2015 19 次提交