diff options
author | David Gibson | 2012-10-29 18:25:00 +0100 |
---|---|---|
committer | Alexander Graf | 2012-11-01 13:02:22 +0100 |
commit | bf0175de6c76779d4c8b0606de7bd2a5a0b87c7a (patch) | |
tree | f8dbdfd094e76443b0cbc79899e3276c2375aed8 /hw/xics.c | |
parent | target-ppc: Extend FPU state for newer POWER CPUs (diff) | |
download | qemu-bf0175de6c76779d4c8b0606de7bd2a5a0b87c7a.tar.gz qemu-bf0175de6c76779d4c8b0606de7bd2a5a0b87c7a.tar.xz qemu-bf0175de6c76779d4c8b0606de7bd2a5a0b87c7a.zip |
pseries: Clean up inconsistent variable name in xics.c
Throughout xics.c 'nr' is used to refer to a global interrupt number, and
'server' is used to refer to an interrupt server number (i.e. CPU number).
Except in icp_set_mfrr(), where 'nr' is used as a server number. Fix this
confusing inconsistency.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xics.c')
-rw-r--r-- | hw/xics.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -108,13 +108,13 @@ static void icp_set_cppr(struct icp_state *icp, int server, uint8_t cppr) } } -static void icp_set_mfrr(struct icp_state *icp, int nr, uint8_t mfrr) +static void icp_set_mfrr(struct icp_state *icp, int server, uint8_t mfrr) { - struct icp_server_state *ss = icp->ss + nr; + struct icp_server_state *ss = icp->ss + server; ss->mfrr = mfrr; if (mfrr < CPPR(ss)) { - icp_check_ipi(icp, nr); + icp_check_ipi(icp, server); } } |