Re: [PATCH v3 7/9] trace: use this_cpu_ptr per-cpu helper

From: Christoph Lameter
Date: Fri Nov 09 2012 - 15:14:58 EST


On Fri, 9 Nov 2012, Shan Wei wrote:

> - return buffer->buffer;
> + return (char *)this_cpu_ptr(&percpu_buffer->buffer);
> }

Add a comment to explain the cast?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/