Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 121fc47d authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Provide a __read_mostly section wrapper.



Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 36b13d76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@

#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

#ifndef __ASSEMBLY__
struct cache_info {
	unsigned int ways;		/* Number of cache ways */