1. 23 3月, 2011 3 次提交
  2. 18 3月, 2011 32 次提交
  3. 04 3月, 2011 2 次提交
  4. 04 2月, 2011 1 次提交
    • S
      serial: bfin_5xx: split uart RX lock from uart port lock to avoid deadlock · 0f66e50a
      Sonic Zhang 提交于
      The RX lock is used to protect the RX buffer from concurrent access in DMA
      mode between the timer and RX interrupt routines.  It is independent from
      the uart lock which is used to protect the TX buffer.  It is possible for
      a uart TX transfer to be started up from the RX interrupt handler if low
      latency is enabled.  So we need to split the locks to avoid deadlocking in
      this situation.
      
      In PIO mode, the RX lock is not necessary because the handle_simple_irq
      and handle_level_irq functions ensure driver interrupt handlers are called
      once on one core.
      
      And now that the RX path has its own lock, the TX interrupt has nothing to
      do with the RX path, so disabling it at the same time.
      Signed-off-by: NSonic Zhang <sonic.zhang@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0f66e50a
  5. 31 1月, 2011 1 次提交
  6. 25 1月, 2011 1 次提交
    • T
      percpu: align percpu readmostly subsection to cacheline · 19df0c2f
      Tejun Heo 提交于
      Currently percpu readmostly subsection may share cachelines with other
      percpu subsections which may result in unnecessary cacheline bounce
      and performance degradation.
      
      This patch adds @cacheline parameter to PERCPU() and PERCPU_VADDR()
      linker macros, makes each arch linker scripts specify its cacheline
      size and use it to align percpu subsections.
      
      This is based on Shaohua's x86 only patch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Shaohua Li <shaohua.li@intel.com>
      19df0c2f