mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[PATCH] ppc64: remove hidden -fno-omit-frame-pointer for schedule.c
While looking at code generated by gcc4.0 I noticed some functions still had frame pointers, even after we stopped ppc64 from defining CONFIG_FRAME_POINTER. It turns out kernel/Makefile hardwires -fno-omit-frame-pointer on when compiling schedule.c. Create CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER and define it on architectures that dont require frame pointers in sched.c code. (akpm: blame me for the name) Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
696c2b9f97
commit
7d12e522ba
@ -46,6 +46,10 @@ config GENERIC_IOMAP
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config SCHED_NO_NO_OMIT_FRAME_POINTER
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "System type"
|
prompt "System type"
|
||||||
default IA64_GENERIC
|
default IA64_GENERIC
|
||||||
|
@ -43,6 +43,10 @@ config GENERIC_NVRAM
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config SCHED_NO_NO_OMIT_FRAME_POINTER
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
source "init/Kconfig"
|
source "init/Kconfig"
|
||||||
|
|
||||||
menu "Processor"
|
menu "Processor"
|
||||||
|
@ -40,6 +40,10 @@ config COMPAT
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config SCHED_NO_NO_OMIT_FRAME_POINTER
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
# We optimistically allocate largepages from the VM, so make the limit
|
# We optimistically allocate largepages from the VM, so make the limit
|
||||||
# large enough (16MB). This badly named config option is actually
|
# large enough (16MB). This badly named config option is actually
|
||||||
# max order + 1
|
# max order + 1
|
||||||
|
@ -29,7 +29,7 @@ obj-$(CONFIG_SYSFS) += ksysfs.o
|
|||||||
obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
|
obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
|
||||||
obj-$(CONFIG_SECCOMP) += seccomp.o
|
obj-$(CONFIG_SECCOMP) += seccomp.o
|
||||||
|
|
||||||
ifneq ($(CONFIG_IA64),y)
|
ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
|
||||||
# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
|
# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
|
||||||
# needed for x86 only. Why this used to be enabled for all architectures is beyond
|
# needed for x86 only. Why this used to be enabled for all architectures is beyond
|
||||||
# me. I suspect most platforms don't need this, but until we know that for sure
|
# me. I suspect most platforms don't need this, but until we know that for sure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user