summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-03 14:32:30 +1000
committerPaul Mackerras <paulus@samba.org>2005-08-29 10:53:34 +1000
commit7a6af5e38054d8e658a4b1b703902331a845de1a (patch)
tree8388d65aec62a65d10bd18306a7e84e7c5e7b18c /include/asm-ppc64
parent6fbb49d56d228b666cb4534bbc3c2dfe833c8053 (diff)
downloadop-kernel-dev-7a6af5e38054d8e658a4b1b703902331a845de1a.zip
op-kernel-dev-7a6af5e38054d8e658a4b1b703902331a845de1a.tar.gz
[PATCH] ppc64: remove firmware features from cpu_spec
The firmware_features field of struct cpu_spec should really be a separate variable as the firmware features do not depend on the chip and the bitmask is constructed independently. By removing it, we save 112 bytes from the cpu_specs array and we access the bitmask directly instead of via the cur_cpu_spec pointer. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r--include/asm-ppc64/cputable.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-ppc64/cputable.h b/include/asm-ppc64/cputable.h
index d67fa9e..d55698a 100644
--- a/include/asm-ppc64/cputable.h
+++ b/include/asm-ppc64/cputable.h
@@ -56,11 +56,6 @@ struct cpu_spec {
* BHT, SPD, etc... from head.S before branching to identify_machine
*/
cpu_setup_t cpu_setup;
-
- /* This is used to identify firmware features which are available
- * to the kernel.
- */
- unsigned long firmware_features;
};
extern struct cpu_spec cpu_specs[];
@@ -72,6 +67,11 @@ static inline unsigned long cpu_has_feature(unsigned long feature)
}
+/* This is used to identify firmware features which are available
+ * to the kernel.
+ */
+extern unsigned long ppc64_firmware_features;
+
/* firmware feature bitmask values */
#define FIRMWARE_MAX_FEATURES 63
OpenPOWER on IntegriCloud