[PATCH] ARM: make memzero optimization smarter

Nicolas Pitre nicolas.pitre at linaro.org
Wed Jan 17 13:14:17 PST 2018


On Wed, 17 Jan 2018, Nicolas Pitre wrote:

> On Wed, 17 Jan 2018, Russell King - ARM Linux wrote:
> 
> > However, __memzero is not safe against being called with a zero length
> > so it's not something we can simply remove.
> 
> The idea is about the possibility of removing __memzero altogether.
> It is not clear that the tiny performance gain from a dedicated memzero 
> implementation is worth the current overhead around it.

This being said, I fail to see how __memzero is not safe against a zero 
length. Are you sure it isn't?


Nicolas



More information about the linux-arm-kernel mailing list