svn commit: r242014 - head/sys/kern

Adrian Chadd adrian at freebsd.org
Wed Oct 24 18:41:07 UTC 2012


On 24 October 2012 11:36, Jim Harris <jimharris at freebsd.org> wrote:

>   Pad tdq_lock to avoid false sharing with tdq_load and tdq_cpu_idle.

Ok, but..


>         struct mtx      tdq_lock;               /* run queue lock. */
> +       char            pad[64 - sizeof(struct mtx)];

.. don't we have an existing compile time macro for the cache line
size, which can be used here?



Adrian


More information about the svn-src-head mailing list