-
- Downloads
percpu: use DEFINE_PER_CPU_SHARED_ALIGNED()
There are a few places where ___cacheline_aligned* is used with
DEFINE_PER_CPU(). Use DEFINE_PER_CPU_SHARED_ALIGNED() instead.
DEFINE_PER_CPU_SHARED_ALIGNED() applies alignment only on SMPs. While
all other converted places used _in_smp variant or only get compiled
for SMP, net/rds used unconditional ____cacheline_aligned. I don't
see any reason these data structures should be aligned on UP and thus
converted together.
Signed-off-by:
Tejun Heo <tj@kernel.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Andy Grover <andy.grover@oracle.com>
Showing
- arch/blackfin/mm/sram-alloc.c 3 additions, 3 deletionsarch/blackfin/mm/sram-alloc.c
- arch/ia64/kernel/smp.c 2 additions, 1 deletionarch/ia64/kernel/smp.c
- kernel/sched.c 2 additions, 2 deletionskernel/sched.c
- net/rds/ib_stats.c 1 addition, 1 deletionnet/rds/ib_stats.c
- net/rds/iw_stats.c 1 addition, 1 deletionnet/rds/iw_stats.c
- net/rds/page.c 1 addition, 1 deletionnet/rds/page.c
Loading
Please register or sign in to comment