Skip to content

Commit

Permalink
sh: Use generic SMP_CACHE_BYTES/L1_CACHE_ALIGN.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Oct 30, 2007
1 parent 3f9654f commit 2278caa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions include/asm-sh/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
#define SH_CACHE_ASSOC 8

#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__
struct cache_info {
Expand Down
2 changes: 1 addition & 1 deletion include/asm-sh/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct sh_cpuinfo {
struct cache_info scache; /* Secondary cache */

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

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

0 comments on commit 2278caa

Please sign in to comment.