aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/pSeries_iommu.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-03 00:32:30 -0400
committerPaul Mackerras <paulus@samba.org>2005-08-28 20:53:34 -0400
commit7a6af5e38054d8e658a4b1b703902331a845de1a (patch)
tree8388d65aec62a65d10bd18306a7e84e7c5e7b18c /arch/ppc64/kernel/pSeries_iommu.c
parent6fbb49d56d228b666cb4534bbc3c2dfe833c8053 (diff)
[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 'arch/ppc64/kernel/pSeries_iommu.c')
-rw-r--r--arch/ppc64/kernel/pSeries_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/pSeries_iommu.c b/arch/ppc64/kernel/pSeries_iommu.c
index 69130522a87e..a5786be9c654 100644
--- a/arch/ppc64/kernel/pSeries_iommu.c
+++ b/arch/ppc64/kernel/pSeries_iommu.c
@@ -546,7 +546,7 @@ void iommu_init_early_pSeries(void)
546 } 546 }
547 547
548 if (systemcfg->platform & PLATFORM_LPAR) { 548 if (systemcfg->platform & PLATFORM_LPAR) {
549 if (cur_cpu_spec->firmware_features & FW_FEATURE_MULTITCE) { 549 if (ppc64_firmware_features & FW_FEATURE_MULTITCE) {
550 ppc_md.tce_build = tce_buildmulti_pSeriesLP; 550 ppc_md.tce_build = tce_buildmulti_pSeriesLP;
551 ppc_md.tce_free = tce_freemulti_pSeriesLP; 551 ppc_md.tce_free = tce_freemulti_pSeriesLP;
552 } else { 552 } else {