mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
6fbb49d56d
commit
7a6af5e380
9 changed files with 19 additions and 33 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue