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

Commit 2278caa3 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Use generic SMP_CACHE_BYTES/L1_CACHE_ALIGN.



Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 3f9654f0
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -18,9 +18,6 @@
#define SH_CACHE_ASSOC		8
#define SH_CACHE_ASSOC		8


#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES		L1_CACHE_BYTES

#define L1_CACHE_ALIGN(x)	(((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))


#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__
struct cache_info {
struct cache_info {
+1 −1
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@ struct sh_cpuinfo {
	struct cache_info scache;	/* Secondary cache */
	struct cache_info scache;	/* Secondary cache */


	unsigned long flags;
	unsigned long flags;
} __attribute__ ((aligned(SMP_CACHE_BYTES)));
} __attribute__ ((aligned(L1_CACHE_BYTES)));


extern struct sh_cpuinfo cpu_data[];
extern struct sh_cpuinfo cpu_data[];
#define boot_cpu_data cpu_data[0]
#define boot_cpu_data cpu_data[0]