powerpc/pmac: Use string library in nvram code
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 27 Jan 2012 04:24:48 +0000 (04:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Mar 2012 06:09:05 +0000 (17:09 +1100)
commit2d4b971287cbce16585acda4b76308faa8da0950
treee81c5af906bd73c1b60ee5a2a5e35b3c96c308bb
parentad5b7f1350c263eef0c99c20f8659d0ed363cb32
powerpc/pmac: Use string library in nvram code

- Use memchr_inv to check if the data contains all 0xFF bytes.
  It is faster than looping for each byte.

- Use memcmp to compare memory areas

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powermac/nvram.c