Skip to content

Commit

Permalink
sh: Provide a __read_mostly section wrapper.
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 36b13d7 commit 121fc47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-sh/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 121fc47

Please sign in to comment.