1. 06 8月, 2010 3 次提交
  2. 05 8月, 2010 2 次提交
  3. 04 8月, 2010 1 次提交
  4. 03 8月, 2010 11 次提交
  5. 02 8月, 2010 11 次提交
  6. 01 8月, 2010 8 次提交
  7. 31 7月, 2010 4 次提交
    • R
      ARM: AMBA: Add pclk support to AMBA bus infrastructure · 7cfe2494
      Russell King 提交于
      Some platforms gate the pclk (APB - the bus - clock) to the peripherals
      for power saving, along with the functional clock.  When devices are
      accessed without pclk enabled, the kernel will oops.
      
      This gives them two options:
      
      1. Leave all clocks on all the time.
      2. Attempt to gate pclk along with the functional clock.
      
      (With some hardware, pclk and the functional clock are gated by a single
      bit in a register.)
      
      (1) has the disadvantage that it causes increased power usage, which is
      bad news for battery operated devices.  (2) can lead to kernel oops if
      registers are accessed without the functional clock being enabled.
      
      So, introduce the apb_pclk signal in such a way existing drivers don't
      need to be updated.  Essentially, this means we guarantee that:
      
      1. pclk will be enabled whenever the driver is bound to a device -
         from probe() to remove() time.
      2. pclk will also be enabled when reading the primecell IDs from the device.
      
      In order to allow drivers to be incrementally updated to achieve greater
      power savings, we provide two additional calls to allow drivers to
      manage the pclk - amba_pclk_enable()/amba_pclk_disable().
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      7cfe2494
    • S
      padata: Remove padata_get_cpumask · 0500e9b3
      Steffen Klassert 提交于
      A function that copies the padata cpumasks to a user buffer
      is a bit error prone. The cpumask can change any time so we
      can't be sure to have the right cpumask when using this function.
      A user who is interested in the padata cpumasks should register
      to the padata cpumask notifier chain instead. Users of
      padata_get_cpumask are already updated, so we can remove it.
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      0500e9b3
    • S
      padata: Pass the padata cpumasks to the cpumask_change_notifier chain · c635696c
      Steffen Klassert 提交于
      We pass a pointer to the new padata cpumasks to the cpumask_change_notifier
      chain. So users can access the cpumasks without the need of an extra
      padata_get_cpumask function.
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      c635696c
    • S
      padata: Rearrange set_cpumask functions · 65ff577e
      Steffen Klassert 提交于
      padata_set_cpumask needs to be protected by a lock. We make
      __padata_set_cpumasks unlocked and static. So this function
      can be used by the exported and locked padata_set_cpumask and
      padata_set_cpumasks functions.
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      65ff577e