2 * arch/s390/kernel/profile.c
4 * Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation
5 * Author(s): Thomas Spatzier (tspat@de.ibm.com)
8 #include <linux/proc_fs.h>
10 static struct proc_dir_entry * root_irq_dir;
12 static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
13 int count, int *eof, void *data)
15 int len = cpumask_scnprintf(page, count, *(cpumask_t *)data);
18 len += sprintf(page + len, "\n");
22 static int prof_cpu_mask_write_proc (struct file *file, const char *buffer,
23 unsigned long count, void *data)
25 cpumask_t *mask = (cpumask_t *)data;
26 unsigned long full_count = count, err;
29 err = cpumask_parse(buffer, count, new_value);
37 cpumask_t prof_cpu_mask = CPU_MASK_ALL;
39 void init_irq_proc(void)
41 struct proc_dir_entry *entry;
43 /* create /proc/irq */
44 root_irq_dir = proc_mkdir("irq", 0);
46 /* create /proc/irq/prof_cpu_mask */
47 entry = create_proc_entry("prof_cpu_mask", 0600, root_irq_dir);
53 entry->data = (void *)&prof_cpu_mask;
54 entry->read_proc = prof_cpu_mask_read_proc;
55 entry->write_proc = prof_cpu_mask_write_proc;