]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/irq/proc.c
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / kernel / irq / proc.c
index da9addb8d655719cbd67a59e5d8535670e28f885..cfc4f088a0e76401a7d8dec6fcbf955108ce085d 100644 (file)
@@ -100,10 +100,6 @@ static int irq_affinity_hint_proc_show(struct seq_file *m, void *v)
        return 0;
 }
 
-#ifndef is_affinity_mask_valid
-#define is_affinity_mask_valid(val) 1
-#endif
-
 int no_irq_affinity;
 static int irq_affinity_proc_show(struct seq_file *m, void *v)
 {
@@ -136,11 +132,6 @@ static ssize_t write_irq_affinity(int type, struct file *file,
        if (err)
                goto free_cpumask;
 
-       if (!is_affinity_mask_valid(new_value)) {
-               err = -EINVAL;
-               goto free_cpumask;
-       }
-
        /*
         * Do not allow disabling IRQs completely - it's a too easy
         * way to make the system unusable accidentally :-) At least
@@ -232,11 +223,6 @@ static ssize_t default_affinity_write(struct file *file,
        if (err)
                goto out;
 
-       if (!is_affinity_mask_valid(new_value)) {
-               err = -EINVAL;
-               goto out;
-       }
-
        /*
         * Do not allow disabling IRQs completely - it's a too easy
         * way to make the system unusable accidentally :-) At least