Skip to content
  • Tejun Heo's avatar
    percpu: align percpu readmostly subsection to cacheline · 19df0c2f
    Tejun Heo authored
    
    
    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: default avatarTejun Heo <tj@kernel.org>
    Cc: Shaohua Li <shaohua.li@intel.com>
    19df0c2f