mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-07 02:15:19 +02:00
Linux_SDK_V1.5.4
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
This commit is contained in:
@@ -6854,6 +6854,17 @@ void __init ftrace_free_init_mem(void)
|
||||
ftrace_free_mem(NULL, start, end);
|
||||
}
|
||||
|
||||
static bool noftrace_init = false;
|
||||
|
||||
/* noftrace bootargs: for option not init ftrace*/
|
||||
static int __init noftrace_setup(char *str)
|
||||
{
|
||||
noftrace_init = true;
|
||||
return 1;
|
||||
}
|
||||
|
||||
__setup("noftrace", noftrace_setup);
|
||||
|
||||
void __init ftrace_init(void)
|
||||
{
|
||||
extern unsigned long __start_mcount_loc[];
|
||||
@@ -6861,6 +6872,9 @@ void __init ftrace_init(void)
|
||||
unsigned long count, flags;
|
||||
int ret;
|
||||
|
||||
if(noftrace_init)
|
||||
goto failed;
|
||||
|
||||
local_irq_save(flags);
|
||||
ret = ftrace_dyn_arch_init();
|
||||
local_irq_restore(flags);
|
||||
|
||||
Reference in New Issue
Block a user