mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
create_proc_cpu_mask() doesn't need an argument...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
b177a29251
commit
fbd387aea0
3 changed files with 6 additions and 8 deletions
|
@ -162,10 +162,8 @@ asmlinkage void do_softirq(void)
|
||||||
#ifdef CONFIG_PROC_FS
|
#ifdef CONFIG_PROC_FS
|
||||||
void init_irq_proc(void)
|
void init_irq_proc(void)
|
||||||
{
|
{
|
||||||
struct proc_dir_entry *root_irq_dir;
|
if (proc_mkdir("irq", NULL))
|
||||||
|
create_prof_cpu_mask();
|
||||||
root_irq_dir = proc_mkdir("irq", NULL);
|
|
||||||
create_prof_cpu_mask(root_irq_dir);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,10 @@ struct pt_regs;
|
||||||
struct notifier_block;
|
struct notifier_block;
|
||||||
|
|
||||||
#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
|
#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
|
||||||
void create_prof_cpu_mask(struct proc_dir_entry *de);
|
void create_prof_cpu_mask(void);
|
||||||
int create_proc_profile(void);
|
int create_proc_profile(void);
|
||||||
#else
|
#else
|
||||||
static inline void create_prof_cpu_mask(struct proc_dir_entry *de)
|
static inline void create_prof_cpu_mask(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -462,10 +462,10 @@ static const struct file_operations prof_cpu_mask_proc_fops = {
|
||||||
.write = prof_cpu_mask_proc_write,
|
.write = prof_cpu_mask_proc_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
void create_prof_cpu_mask(struct proc_dir_entry *root_irq_dir)
|
void create_prof_cpu_mask(void)
|
||||||
{
|
{
|
||||||
/* create /proc/irq/prof_cpu_mask */
|
/* create /proc/irq/prof_cpu_mask */
|
||||||
proc_create("prof_cpu_mask", 0600, root_irq_dir, &prof_cpu_mask_proc_fops);
|
proc_create("irq/prof_cpu_mask", 0600, NULL, &prof_cpu_mask_proc_fops);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue