summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-11-30 01:14:45 +0000
committerRalf Baechle <ralf@linux-mips.org>2006-11-30 01:14:45 +0000
commit6f2c3fa022312d5381f44359984395761e375f1b (patch)
treedb35ee83de7a7a9e4bd04b213ce24dedc68df958
parent714cfe7865e5182a3b25be6a95c0b17aa8e64aa9 (diff)
downloadlinux-6f2c3fa022312d5381f44359984395761e375f1b.tar.gz
linux-6f2c3fa022312d5381f44359984395761e375f1b.tar.bz2
linux-6f2c3fa022312d5381f44359984395761e375f1b.zip
[MIPS] Fix alignment hole in struct cache_desc; shrink struct.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--include/asm-mips/cpu-info.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-mips/cpu-info.h b/include/asm-mips/cpu-info.h
index a2f0c8ea9160..610d0cdeaa9e 100644
--- a/include/asm-mips/cpu-info.h
+++ b/include/asm-mips/cpu-info.h
@@ -22,12 +22,12 @@
* Descriptor for a cache
*/
struct cache_desc {
- unsigned short linesz; /* Size of line in bytes */
- unsigned short ways; /* Number of ways */
- unsigned short sets; /* Number of lines per set */
unsigned int waysize; /* Bytes per way */
- unsigned int waybit; /* Bits to select in a cache set */
- unsigned int flags; /* Flags describing cache properties */
+ unsigned short sets; /* Number of lines per set */
+ unsigned char ways; /* Number of ways */
+ unsigned char linesz; /* Size of line in bytes */
+ unsigned char waybit; /* Bits to select in a cache set */
+ unsigned char flags; /* Flags describing cache properties */
};
/*