]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xive: Remove (almost) unused macros
authorRussell Currey <ruscur@russell.cc>
Fri, 11 May 2018 08:03:13 +0000 (18:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:35 +0000 (20:43 +1000)
commite9b45bbd932c94de7a2f22da52a79b3570907624
tree7bda37d119050a8686af56ac45f639b0f953a868
parentca3036d98380f46134edf2760de0e823f0d8ff5c
powerpc/xive: Remove (almost) unused macros

The GETFIELD and SETFIELD macros in xive-regs.h aren't used except for
a single instance of GETFIELD, so replace that and remove them.

These macros are also defined in vas.h, so either those should be
eventually replaced or the macros moved into bitops.h.

Signed-off-by: Russell Currey <ruscur@russell.cc>
[mpe: Rewrite the assignment to 'he' to avoid ffs() etc.]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/xive-regs.h
arch/powerpc/sysdev/xive/native.c