]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
genirq: procfs: Make smp_affinity values go+r
authorChema Gonzalez <chema@google.com>
Fri, 14 Mar 2014 02:50:55 +0000 (19:50 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 19 Mar 2014 11:34:29 +0000 (12:34 +0100)
Includes:
- /proc/irq/default_smp_affinity
- /proc/irq/*/affinity_hint
- /proc/irq/*/smp_affinity
- /proc/irq/*/smp_affinity_list

Users can distill the same information by reading /proc/interrupts.

Signed-off-by: Chema Gonzalez <chema@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Link: http://lkml.kernel.org/r/1394765455-1217-1-git-send-email-chema@google.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/proc.c

index 36f6ee181b0c4313a7632f6914341cacd26989b0..ac1ba2f110321fe637b2f5538c0ac568dbafc10e 100644 (file)
@@ -324,15 +324,15 @@ void register_irq_proc(unsigned int irq, struct irq_desc *desc)
 
 #ifdef CONFIG_SMP
        /* create /proc/irq/<irq>/smp_affinity */
-       proc_create_data("smp_affinity", 0600, desc->dir,
+       proc_create_data("smp_affinity", 0644, desc->dir,
                         &irq_affinity_proc_fops, (void *)(long)irq);
 
        /* create /proc/irq/<irq>/affinity_hint */
-       proc_create_data("affinity_hint", 0400, desc->dir,
+       proc_create_data("affinity_hint", 0444, desc->dir,
                         &irq_affinity_hint_proc_fops, (void *)(long)irq);
 
        /* create /proc/irq/<irq>/smp_affinity_list */
-       proc_create_data("smp_affinity_list", 0600, desc->dir,
+       proc_create_data("smp_affinity_list", 0644, desc->dir,
                         &irq_affinity_list_proc_fops, (void *)(long)irq);
 
        proc_create_data("node", 0444, desc->dir,
@@ -372,7 +372,7 @@ void unregister_handler_proc(unsigned int irq, struct irqaction *action)
 static void register_default_affinity_proc(void)
 {
 #ifdef CONFIG_SMP
-       proc_create("irq/default_smp_affinity", 0600, NULL,
+       proc_create("irq/default_smp_affinity", 0644, NULL,
                    &default_affinity_proc_fops);
 #endif
 }