Re: [PATCH 1/2] coresight: Do not call smp_processor_id() from preemptible

2019-05-08 Thread Suzuki K Poulose
On 08/05/2019 17:39, Mathieu Poirier wrote: Hi Suzuki, On Fri, 3 May 2019 at 10:04, Suzuki K Poulose wrote: Instead of using smp_processor_id() to figure out the node, use the numa_node_id() for the current CPU node to avoid splats like : BUG: using smp_processor_id() in preemptible

Re: [PATCH 1/2] coresight: Do not call smp_processor_id() from preemptible

2019-05-08 Thread Mathieu Poirier
Hi Suzuki, On Fri, 3 May 2019 at 10:04, Suzuki K Poulose wrote: > > Instead of using smp_processor_id() to figure out the node, > use the numa_node_id() for the current CPU node to avoid > splats like : > > BUG: using smp_processor_id() in preemptible [] code: perf/1743 > caller is

[PATCH 1/2] coresight: Do not call smp_processor_id() from preemptible

2019-05-03 Thread Suzuki K Poulose
Instead of using smp_processor_id() to figure out the node, use the numa_node_id() for the current CPU node to avoid splats like : BUG: using smp_processor_id() in preemptible [] code: perf/1743 caller is alloc_etr_buf.isra.6+0x80/0xa0 CPU: 1 PID: 1743 Comm: perf Not tainted