Messages in this thread Patch in this message | | | From | Martin Schwidefsky <> | Subject | [PATCH] 2.5.40 s390 (26/27): /proc/interrupts. | Date | Fri, 4 Oct 2002 16:36:23 +0200 |
| |
Don't create /proc/interrupts on s390.
diff -urN linux-2.5.40/drivers/s390/cio/proc.c linux-2.5.40-s390/drivers/s390/cio/proc.c --- linux-2.5.40/drivers/s390/cio/proc.c Fri Oct 4 16:14:52 2002 +++ linux-2.5.40-s390/drivers/s390/cio/proc.c Fri Oct 4 16:16:54 2002 @@ -17,7 +17,6 @@ #include <linux/config.h> #include <linux/init.h> #include <linux/proc_fs.h> -#include <linux/seq_file.h> #include <asm/io.h> #include <asm/irq.h> @@ -31,31 +30,6 @@ static int chan_proc_init (void); -int show_interrupts(struct seq_file *p, void *v) -{ - int i, j; - - seq_puts(p, " "); - - for (j=0; j<num_online_cpus(); j++) - seq_printf(p, "CPU%d ",j); - - seq_putc(p, '\n'); - - for (i = 0 ; i < NR_IRQS ; i++) { - if (ioinfo[i] == INVALID_STORAGE_AREA) - continue; - - seq_printf(p, "%3d: ",i); - seq_printf(p, " %s", ioinfo[i]->irq_desc.name); - - seq_putc(p, '\n'); - - } /* endfor */ - - return 0; -} - /* * Display info on subchannels in /proc/subchannels. * Adapted from procfs stuff in dasd.c by Cornelia Huck, 02/28/01. diff -urN linux-2.5.40/fs/proc/proc_misc.c linux-2.5.40-s390/fs/proc/proc_misc.c --- linux-2.5.40/fs/proc/proc_misc.c Tue Oct 1 09:06:18 2002 +++ linux-2.5.40-s390/fs/proc/proc_misc.c Fri Oct 4 16:16:54 2002 @@ -432,6 +432,7 @@ return proc_calc_metrics(page, start, off, count, eof, len); } +#if !defined(CONFIG_ARCH_S390) extern int show_interrupts(struct seq_file *p, void *v); static int interrupts_open(struct inode *inode, struct file *file) { @@ -461,6 +462,7 @@ .llseek = seq_lseek, .release = single_release, }; +#endif static int filesystems_read_proc(char *page, char **start, off_t off, int count, int *eof, void *data) @@ -643,7 +645,9 @@ entry->proc_fops = &proc_kmsg_operations; create_seq_entry("cpuinfo", 0, &proc_cpuinfo_operations); create_seq_entry("partitions", 0, &proc_partitions_operations); +#if !defined(CONFIG_ARCH_S390) create_seq_entry("interrupts", 0, &proc_interrupts_operations); +#endif create_seq_entry("slabinfo",S_IWUSR|S_IRUGO,&proc_slabinfo_operations); create_seq_entry("buddyinfo",S_IRUGO, &fragmentation_file_operations); #ifdef CONFIG_MODULES - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |