ftrace: Remove NR_TO_INIT macro
authorAlex Shi <alex.shi@linux.alibaba.com>
Tue, 21 Jan 2020 05:54:23 +0000 (13:54 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 21 Jan 2020 22:30:39 +0000 (17:30 -0500)
This macro isn't used from commit cb7be3b2fc2c ("ftrace: remove
daemon"). So no needs to keep it.

Link: http://lkml.kernel.org/r/1579586063-44984-1-git-send-email-alex.shi@linux.alibaba.com
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c

index 7fe87c7ab1a81b92baed74589a01984c183e485d..5c701765da5b4d91e83c18dff28ff4fd58b66620 100644 (file)
@@ -1101,9 +1101,6 @@ struct ftrace_page {
 #define ENTRY_SIZE sizeof(struct dyn_ftrace)
 #define ENTRIES_PER_PAGE (PAGE_SIZE / ENTRY_SIZE)
 
-/* estimate from running different kernels */
-#define NR_TO_INIT             10000
-
 static struct ftrace_page      *ftrace_pages_start;
 static struct ftrace_page      *ftrace_pages;