1. 23 10月, 2012 2 次提交
    • R
      PM / QoS: Introduce request and constraint data types for PM QoS flags · 5efbe427
      Rafael J. Wysocki 提交于
      Introduce struct pm_qos_flags_request and struct pm_qos_flags
      representing PM QoS flags request type and PM QoS flags constraint
      type, respectively.  With these definitions the data structures
      will be arranged so that the list member of a struct pm_qos_flags
      object will contain the head of a list of struct pm_qos_flags_request
      objects representing all of the "flags" requests present for the
      given device.  Then, the effective_flags member of a struct
      pm_qos_flags object will contain the bitwise OR of the flags members
      of all the struct pm_qos_flags_request objects in the list.
      
      Additionally, introduce helper function pm_qos_update_flags()
      allowing the caller to manage the list of struct pm_qos_flags_request
      pointed to by the list member of struct pm_qos_flags.
      
      The flags are of type s32 so that the request's "value" field
      is always of the same type regardless of what kind of request it
      is (latency requests already have value fields of type s32).
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: NJean Pihet <j-pihet@ti.com>
      Acked-by: Nmark gross <markgross@thegnar.org>
      5efbe427
    • R
      PM / QoS: Prepare device structure for adding more constraint types · 5f986c59
      Rafael J. Wysocki 提交于
      Currently struct dev_pm_info contains only one PM QoS constraints
      pointer reserved for latency requirements.  Since one more device
      constraints type (i.e. flags) will be necessary, introduce a new
      structure, struct dev_pm_qos, that eventually will contain all of
      the available device PM QoS constraints and replace the "constraints"
      pointer in struct dev_pm_info with a pointer to the new structure
      called "qos".
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: NJean Pihet <j-pihet@ti.com>
      5f986c59
  2. 21 10月, 2012 2 次提交
  3. 20 10月, 2012 36 次提交