video: tegra: dc: Add quick for Vizio P series
[linux-3.10.git] / lib / smp_processor_id.c
index 4689cb0..4c0d0e5 100644 (file)
@@ -3,7 +3,7 @@
  *
  * DEBUG_PREEMPT variant of smp_processor_id().
  */
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/kallsyms.h>
 #include <linux/sched.h>
 
@@ -22,7 +22,7 @@ notrace unsigned int debug_smp_processor_id(void)
         * Kernel threads bound to a single CPU can safely use
         * smp_processor_id():
         */
-       if (cpumask_equal(&current->cpus_allowed, cpumask_of(this_cpu)))
+       if (cpumask_equal(tsk_cpus_allowed(current), cpumask_of(this_cpu)))
                goto out;
 
        /*