Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

profiling: Remove create_prof_cpu_mask().

create_prof_cpu_mask() is no longer used after commit 1f44a225777e ("s390:
convert interrupt handling to use generic hardirq").

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Tetsuo Handa and committed by
Linus Torvalds
2e5449f4 8a5c3ef7

-48
-5
include/linux/profile.h
··· 18 18 struct notifier_block; 19 19 20 20 #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) 21 - void create_prof_cpu_mask(void); 22 21 int create_proc_profile(void); 23 22 #else 24 - static inline void create_prof_cpu_mask(void) 25 - { 26 - } 27 - 28 23 static inline int create_proc_profile(void) 29 24 { 30 25 return 0;
-43
kernel/profile.c
··· 344 344 #include <linux/seq_file.h> 345 345 #include <linux/uaccess.h> 346 346 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 - 390 347 /* 391 348 * This function accesses profiling information. The returned data is 392 349 * binary: the sampling step and the actual contents of the profile