Messages in this thread | | | Date | Fri, 21 Dec 2012 22:44:31 -0500 | From | Rik van Riel <> | Subject | Re: [RFC PATCH 3/3 -v2] x86,smp: auto tune spinlock backoff delay factor |
| |
On 12/21/2012 10:29 PM, Eric Dumazet wrote: > On Fri, 2012-12-21 at 18:56 -0500, Rik van Riel wrote: >> + int *delay_ptr = &per_cpu(spinlock_delay, smp_processor_id()); >> + int delay = *delay_ptr; > > int delay = __this_cpu_read(spinlock_delay); > >> } >> + *delay_ptr = delay; > > __this_cpu_write(spinlock_delay, delay);
Thanks for that cleanup. I have applied it to my code.
| |