Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24639
b: refs/heads/master
c: d0160bf
h: refs/heads/master
i:
  24637: 401465e
  24635: a793b33
  24631: 16f3281
  24623: 63b464e
  24607: ea489a4
  24575: 9c716ca
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Mar 28, 2006
1 parent 2410aa1 commit 73d51d3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f25194dbe0c4b2472ce133ea3e9bcbb14936ae7
refs/heads/master: d0160bf0b3e87032be8e85f80ddd2f18e107b86f
4 changes: 3 additions & 1 deletion trunk/arch/powerpc/kernel/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
*/

#include <linux/config.h>
#include <linux/module.h>

#include <asm/firmware.h>

unsigned long ppc64_firmware_features;
unsigned long powerpc_firmware_features;
EXPORT_SYMBOL_GPL(powerpc_firmware_features);
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,8 @@ static int __init iseries_probe(int platform)
if (PLATFORM_ISERIES_LPAR != platform)
return 0;

ppc64_firmware_features |= FW_FEATURE_ISERIES;
ppc64_firmware_features |= FW_FEATURE_LPAR;
powerpc_firmware_features |= FW_FEATURE_ISERIES;
powerpc_firmware_features |= FW_FEATURE_LPAR;

return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/pseries/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void __init fw_feature_init(void)
continue;

/* we have a match */
ppc64_firmware_features |=
powerpc_firmware_features |=
firmware_features_table[i].val;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static int __init pSeries_probe(int platform)
*/

if (platform == PLATFORM_PSERIES_LPAR)
ppc64_firmware_features |= FW_FEATURE_LPAR;
powerpc_firmware_features |= FW_FEATURE_LPAR;

return 1;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-powerpc/firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ enum {
/* This is used to identify firmware features which are available
* to the kernel.
*/
extern unsigned long ppc64_firmware_features;
extern unsigned long powerpc_firmware_features;

#define firmware_has_feature(feature) \
((FW_FEATURE_ALWAYS & (feature)) || \
(FW_FEATURE_POSSIBLE & ppc64_firmware_features & (feature)))
(FW_FEATURE_POSSIBLE & powerpc_firmware_features & (feature)))

extern void system_reset_fwnmi(void);
extern void machine_check_fwnmi(void);
Expand Down

0 comments on commit 73d51d3

Please sign in to comment.