1. 28 8月, 2013 1 次提交
  2. 24 8月, 2013 4 次提交
  3. 23 8月, 2013 1 次提交
    • G
      sysfs.h: remove attr_name() macro · 3e1026b3
      Greg Kroah-Hartman 提交于
      Gotta love a macro that doesn't reduce the typing you have to do.
      
      Also, only the driver core, and one network driver uses this.  The
      driver core functions will be going away soon, and I'll convert the
      network driver soon to not need this as well, so delete it for now
      before anyone else gets some bright ideas and wants to use it.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3e1026b3
  4. 22 8月, 2013 9 次提交
  5. 20 8月, 2013 3 次提交
  6. 13 8月, 2013 4 次提交
  7. 30 7月, 2013 1 次提交
    • H
      cpu topology: remove stale arch_provides_topology_pointers and define_siblings_show_map/list() · 29f1953d
      Hanjun Guo 提交于
      arch_provides_topology_pointers was introduced in commit 23ca4bba (x86:
      cleanup early per cpu variables/accesses v4) to indicate pointers to the
      topology cpumask_t maps are valid to avoid copying data on to/off of the
      stack.
      
      But later in commit fbd59a8d (cpumask: Use topology_core_cpumask()/
      topology_thread_cpumask()), the pointers to the topology struct cpumask maps
      are always valid.
      
      After that commit, the only difference is that there is a redundant
      "unsigned int cpu = dev->id;" if arch_provides_topology_pointers defined, but
      dev->id is type 'u32' which devolves to 'unsigned int' on all supported arches.
      So this arch_provides_topology_pointers define is pointless and only cause
      obfuscation now, remove it.
      
      Tested on x86 machine, topology information in sys/devices/system/cpu/
      cpuX/topology/ is the same after appling this patch set.
      Signed-off-by: NHanjun Guo <hanjun.guo@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      29f1953d
  8. 27 7月, 2013 2 次提交
  9. 17 7月, 2013 3 次提交
  10. 15 7月, 2013 1 次提交
  11. 04 7月, 2013 2 次提交
  12. 28 6月, 2013 1 次提交
    • M
      reservation: cross-device reservation support, v4 · 786d7257
      Maarten Lankhorst 提交于
      This adds support for a generic reservations framework that can be
      hooked up to ttm and dma-buf and allows easy sharing of reservations
      across devices.
      
      The idea is that a dma-buf and ttm object both will get a pointer
      to a struct reservation_object, which has to be reserved before
      anything is done with the contents of the dma-buf.
      
      Changes since v1:
       - Fix locking issue in ticket_reserve, which could cause mutex_unlock
         to be called too many times.
      Changes since v2:
       - All fence related calls and members have been taken out for now,
         what's left is the bare minimum to be useful for ttm locking conversion.
      Changes since v3:
       - Removed helper functions too. The documentation has an example
         implementation for locking. With the move to ww_mutex there is no
         need to have much logic any more.
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@canonical.com>
      Reviewed-by: NJerome Glisse <jglisse@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      786d7257
  13. 26 6月, 2013 1 次提交
  14. 24 6月, 2013 1 次提交
  15. 22 6月, 2013 1 次提交
  16. 21 6月, 2013 1 次提交
    • J
      PM / Sleep: Print last wakeup source on failed wakeup_count write · bb177fed
      Julius Werner 提交于
      Commit a938da06 introduced a useful little log message to tell
      users/debuggers which wakeup source aborted a suspend.  However,
      this message is only printed if the abort happens during the
      in-kernel suspend path (after writing /sys/power/state).
      
      The full specification of the /sys/power/wakeup_count facility
      allows user-space power managers to double-check if wakeups have
      already happened before it actually tries to suspend (e.g. while it
      was running user-space pre-suspend hooks), by writing the last known
      wakeup_count value to /sys/power/wakeup_count.  This patch changes
      the sysfs handler for that node to also print said log message if
      that write fails, so that we can figure out the offending wakeup
      source for both kinds of suspend aborts.
      Signed-off-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      bb177fed
  17. 19 6月, 2013 2 次提交
  18. 16 6月, 2013 1 次提交
  19. 12 6月, 2013 1 次提交
    • S
      regmap: Add regmap_field APIs · 67252287
      Srinivas Kandagatla 提交于
      It is common to access regmap registers at bit level, using
      regmap_update_bits or regmap_read functions, however the end user has to
      take care of a mask or shifting. This becomes overhead when such use
      cases are high. Having a common function to do this is much convenient
      and less error prone.
      
      The idea of regmap_field is simple, regmap_field gives a logical
      structure to bits of the regmap register, and the driver can use this
      logical entity without the knowledge of the bit positions and masks all
      over the code. This way code looks much neat and it need not handle the
      masks, shifts every time it access the those entities.
      
      With this new regmap_field_read/write apis the end user can setup a
      regmap field using regmap_field_init and use the return regmap_field to
      read write the register field without worrying about the masks or
      shifts.
      
      Also this apis will be useful for drivers which are based on regmaps,
      like some clocks or pinctrls which can work on the regmap_fields
      directly without having to worry about bit positions.
      Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      67252287