projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db46e14
)
x86/platform/intel-mid: Make several arrays static, to make code smaller
author
Colin Ian King
<
[email protected]
>
Fri, 25 Aug 2017 16:32:06 +0000
(17:32 +0100)
committer
Ingo Molnar
<
[email protected]
>
Tue, 29 Aug 2017 11:30:16 +0000
(13:30 +0200)
Don't populate arrays on the stack, instead make them static.
Makes the object code smaller by 76 bytes:
Before:
text data bss dec hex filename
4217 1540 128 5885 16fd arch/x86/platform/intel-mid/pwr.o
After:
text data bss dec hex filename
3981 1700 128 5809 16b1 arch/x86/platform/intel-mid/pwr.o
Signed-off-by: Colin Ian King <
[email protected]
>
Reviewed-by: Andy Shevchenko <
[email protected]
>
Cc: Bjorn Helgaas <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Lukas Wunner <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/platform/intel-mid/pwr.c
patch
|
blob
|
history
diff --git
a/arch/x86/platform/intel-mid/pwr.c
b/arch/x86/platform/intel-mid/pwr.c
index ef03852ea6e8fdf2896a990398201ba24fd72e4f..49ec5b94c71f958868711ebc048cd068c3fbec23 100644
(file)
--- a/
arch/x86/platform/intel-mid/pwr.c
+++ b/
arch/x86/platform/intel-mid/pwr.c
@@
-444,7
+444,7
@@
static int mid_set_initial_state(struct mid_pwr *pwr, const u32 *states)
static int pnw_set_initial_state(struct mid_pwr *pwr)
{
/* On Penwell SRAM must stay powered on */
- const u32 states[] = {
+
static
const u32 states[] = {
0xf00fffff, /* PM_SSC(0) */
0xffffffff, /* PM_SSC(1) */
0xffffffff, /* PM_SSC(2) */
@@
-455,7
+455,7
@@
static int pnw_set_initial_state(struct mid_pwr *pwr)
static int tng_set_initial_state(struct mid_pwr *pwr)
{
- const u32 states[] = {
+
static
const u32 states[] = {
0xffffffff, /* PM_SSC(0) */
0xffffffff, /* PM_SSC(1) */
0xffffffff, /* PM_SSC(2) */