]> git.baikalelectronics.ru Git - kernel.git/commit
mm: deduplicate cacheline padding code
authorShakeel Butt <shakeelb@google.com>
Fri, 26 Aug 2022 23:06:42 +0000 (23:06 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Sep 2022 02:46:29 +0000 (19:46 -0700)
commit3dac995595687483017422ca83b353c6095f2b79
treef72c01caf19e88d74482af862b9378f6f19893b9
parent8c2bce0509dfec07057e746a48104abdf5b443fe
mm: deduplicate cacheline padding code

There are three users (mmzone.h, memcontrol.h, page_counter.h) using
similar code for forcing cacheline padding between fields of different
structures.  Dedup that code.

Link: https://lkml.kernel.org/r/20220826230642.566725-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Suggested-by: Feng Tang <feng.tang@intel.com>
Reviewed-by: Feng Tang <feng.tang@intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cache.h
include/linux/memcontrol.h
include/linux/mmzone.h
include/linux/page_counter.h