aboutsummaryrefslogtreecommitdiff
path: root/core/cpu.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:27:00 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-18 16:04:26 +1000
commit2490669a29014e27eee3bf3c72b17383dea4a55d (patch)
tree1ffc8f2c4680e2071f7f8befd5faf6ed14eab81f /core/cpu.c
parentb54745c0a81af6e2ecd86f50f2b66aa9d0f4409e (diff)
downloadskiboot-2490669a29014e27eee3bf3c72b17383dea4a55d.zip
skiboot-2490669a29014e27eee3bf3c72b17383dea4a55d.tar.gz
skiboot-2490669a29014e27eee3bf3c72b17383dea4a55d.tar.bz2
Disable mcount on some early functions
It doesn't work well to call it before the boot CPU structure is initialized. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/cpu.c')
-rw-r--r--core/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cpu.c b/core/cpu.c
index f407b46..316a0a3 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -438,7 +438,7 @@ void init_hid(void)
disable_attn();
}
-void pre_init_boot_cpu(void)
+void __nomcount pre_init_boot_cpu(void)
{
struct cpu_thread *cpu = this_cpu();