Commit 5f6b01fb authored by Ingo Molnar's avatar Ingo Molnar Committed by Thomas Gleixner

smp: processor id fixups for rt

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 33fe41da
...@@ -84,7 +84,7 @@ static inline void *netpoll_poll_lock(struct napi_struct *napi) ...@@ -84,7 +84,7 @@ static inline void *netpoll_poll_lock(struct napi_struct *napi)
rcu_read_lock(); /* deal with race on ->npinfo */ rcu_read_lock(); /* deal with race on ->npinfo */
if (dev && dev->npinfo) { if (dev && dev->npinfo) {
spin_lock(&napi->poll_lock); spin_lock(&napi->poll_lock);
napi->poll_owner = smp_processor_id(); napi->poll_owner = raw_smp_processor_id();
return napi; return napi;
} }
return NULL; return NULL;
......
...@@ -206,7 +206,7 @@ static void delayed_work_timer_fn(unsigned long __data) ...@@ -206,7 +206,7 @@ static void delayed_work_timer_fn(unsigned long __data)
struct cpu_workqueue_struct *cwq = get_wq_data(&dwork->work); struct cpu_workqueue_struct *cwq = get_wq_data(&dwork->work);
struct workqueue_struct *wq = cwq->wq; struct workqueue_struct *wq = cwq->wq;
__queue_work(wq_per_cpu(wq, smp_processor_id()), &dwork->work); __queue_work(wq_per_cpu(wq, raw_smp_processor_id()), &dwork->work);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment