Commit 9e22a072 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] make private profile state static

Make the various bits of state no longer used anywhere else static to
kernel/profile.c
Signed-off-by: default avatarWilliam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 374053e1
......@@ -15,9 +15,6 @@
struct proc_dir_entry;
struct pt_regs;
/* parse command line */
int __init profile_setup(char * str);
/* init basic kernel profiler */
void __init profile_init(void);
void profile_tick(int, struct pt_regs *);
......@@ -28,13 +25,6 @@ void create_prof_cpu_mask(struct proc_dir_entry *);
#define create_prof_cpu_mask(x) do { (void)(x); } while (0)
#endif
extern unsigned int * prof_buffer;
extern unsigned long prof_len;
extern unsigned long prof_shift;
extern int prof_on;
extern cpumask_t prof_cpu_mask;
enum profile_type {
EXIT_TASK,
EXIT_MMAP,
......
......@@ -156,8 +156,6 @@ static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
static const char *panic_later, *panic_param;
__setup("profile=", profile_setup);
static int __init obsolete_checksetup(char *line)
{
struct obs_kernel_param *p;
......
......@@ -12,13 +12,12 @@
#include <linux/profile.h>
#include <asm/sections.h>
unsigned int * prof_buffer;
unsigned long prof_len;
unsigned long prof_shift;
int prof_on;
cpumask_t prof_cpu_mask = CPU_MASK_ALL;
static unsigned int *prof_buffer;
static unsigned long prof_len, prof_shift;
static int prof_on;
static cpumask_t prof_cpu_mask = CPU_MASK_ALL;
int __init profile_setup(char * str)
static int __init profile_setup(char * str)
{
int par;
......@@ -36,6 +35,7 @@ int __init profile_setup(char * str)
}
return 1;
}
__setup("profile=", profile_setup);
void __init profile_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment