diff options
| author | Russell Currey <[email protected]> | 2018-05-11 08:03:13 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-06-03 10:43:35 +0000 |
| commit | 8a792262f320245de0174e6bcb551312f2e2debe (patch) | |
| tree | 7bda37d119050a8686af56ac45f639b0f953a868 /arch/powerpc/sysdev/xive/native.c | |
| parent | hvc_opal: don't set tb_ticks_per_usec in udbg_init_opal_common() (diff) | |
| download | kernel-8a792262f320245de0174e6bcb551312f2e2debe.tar.gz kernel-8a792262f320245de0174e6bcb551312f2e2debe.zip | |
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 <[email protected]>
[mpe: Rewrite the assignment to 'he' to avoid ffs() etc.]
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/sysdev/xive/native.c')
| -rw-r--r-- | arch/powerpc/sysdev/xive/native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c index b48454be5b98..83bcd72b21cf 100644 --- a/arch/powerpc/sysdev/xive/native.c +++ b/arch/powerpc/sysdev/xive/native.c @@ -341,7 +341,7 @@ static void xive_native_update_pending(struct xive_cpu *xc) * of the hypervisor interrupt (if any) */ cppr = ack & 0xff; - he = GETFIELD(TM_QW3_NSR_HE, (ack >> 8)); + he = (ack >> 8) >> 6; switch(he) { case TM_QW3_NSR_HE_NONE: /* Nothing to see here */ break; |
