aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/lib/cacheflush.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-08-12 15:00:51 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-09-03 14:52:09 -0400
commit49cf78ef7bb34833496d59b6dfe84ae51b1ab097 (patch)
tree8c4931de01fd8e6e861cf38e520f40ef1e5143f4 /arch/tile/lib/cacheflush.c
parenttile: support reporting Tilera hypervisor statistics (diff)
downloadlinux-dev-49cf78ef7bb34833496d59b6dfe84ae51b1ab097.tar.xz
linux-dev-49cf78ef7bb34833496d59b6dfe84ae51b1ab097.zip
tile: support FRAME_POINTER
Allow enabling frame pointer support; this makes it easier to hook into the various kernel features that claim they require it without having to add Kconfig conditionals everywhere (a la mips, ppc, s390, and microblaze). When enabled, it basically eliminates leaf functions as such, and stops optimizing tail and sibling calls. It adds around 3% to the size of the kernel when enabled. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/lib/cacheflush.c')
-rw-r--r--arch/tile/lib/cacheflush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/tile/lib/cacheflush.c b/arch/tile/lib/cacheflush.c
index 2238b40abf3c..9c0ec22009a5 100644
--- a/arch/tile/lib/cacheflush.c
+++ b/arch/tile/lib/cacheflush.c
@@ -36,7 +36,8 @@ static inline void force_load(char *p)
* core (if "!hfh") or homed via hash-for-home (if "hfh"), waiting
* until the memory controller holds the flushed values.
*/
-void finv_buffer_remote(void *buffer, size_t size, int hfh)
+void __attribute__((optimize("omit-frame-pointer")))
+finv_buffer_remote(void *buffer, size_t size, int hfh)
{
char *p, *base;
size_t step_size, load_count;