Skip to content

Commit 2e5449f

Browse files
Tetsuo Handatorvalds
authored andcommitted
profiling: Remove create_prof_cpu_mask().
create_prof_cpu_mask() is no longer used after commit 1f44a22 ("s390: convert interrupt handling to use generic hardirq"). Signed-off-by: Tetsuo Handa <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8a5c3ef commit 2e5449f

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

include/linux/profile.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ struct proc_dir_entry;
1818
struct notifier_block;
1919

2020
#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
21-
void create_prof_cpu_mask(void);
2221
int create_proc_profile(void);
2322
#else
24-
static inline void create_prof_cpu_mask(void)
25-
{
26-
}
27-
2823
static inline int create_proc_profile(void)
2924
{
3025
return 0;

kernel/profile.c

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -344,49 +344,6 @@ void profile_tick(int type)
344344
#include <linux/seq_file.h>
345345
#include <linux/uaccess.h>
346346

347-
static int prof_cpu_mask_proc_show(struct seq_file *m, void *v)
348-
{
349-
seq_printf(m, "%*pb\n", cpumask_pr_args(prof_cpu_mask));
350-
return 0;
351-
}
352-
353-
static int prof_cpu_mask_proc_open(struct inode *inode, struct file *file)
354-
{
355-
return single_open(file, prof_cpu_mask_proc_show, NULL);
356-
}
357-
358-
static ssize_t prof_cpu_mask_proc_write(struct file *file,
359-
const char __user *buffer, size_t count, loff_t *pos)
360-
{
361-
cpumask_var_t new_value;
362-
int err;
363-
364-
if (!zalloc_cpumask_var(&new_value, GFP_KERNEL))
365-
return -ENOMEM;
366-
367-
err = cpumask_parse_user(buffer, count, new_value);
368-
if (!err) {
369-
cpumask_copy(prof_cpu_mask, new_value);
370-
err = count;
371-
}
372-
free_cpumask_var(new_value);
373-
return err;
374-
}
375-
376-
static const struct proc_ops prof_cpu_mask_proc_ops = {
377-
.proc_open = prof_cpu_mask_proc_open,
378-
.proc_read = seq_read,
379-
.proc_lseek = seq_lseek,
380-
.proc_release = single_release,
381-
.proc_write = prof_cpu_mask_proc_write,
382-
};
383-
384-
void create_prof_cpu_mask(void)
385-
{
386-
/* create /proc/irq/prof_cpu_mask */
387-
proc_create("irq/prof_cpu_mask", 0600, NULL, &prof_cpu_mask_proc_ops);
388-
}
389-
390347
/*
391348
* This function accesses profiling information. The returned data is
392349
* binary: the sampling step and the actual contents of the profile

0 commit comments

Comments
 (0)