diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-06-30 01:15:53 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-06-30 01:15:53 -0400 |
commit | 74889802a1585af4e1652f0cb853ac22a65816a4 (patch) | |
tree | 4edf4b33345b2a986a52d67d1b47137f399eef8c /arch/ppc64/kernel/ItLpQueue.c | |
parent | 937b31b114b5540f456ce1566aae67e02db41f2c (diff) |
[PATCH] ppc64: Don't count number of events processed for caller
Currently we count the number of lpevents processed in 3 seperate places.
One of these counters is never read, so just remove it. This means
hvlpevent_queue_process() no longer needs to return the number of events
processed.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/ItLpQueue.c')
-rw-r--r-- | arch/ppc64/kernel/ItLpQueue.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/ppc64/kernel/ItLpQueue.c b/arch/ppc64/kernel/ItLpQueue.c index a81e49b91af0..a849f6775ad6 100644 --- a/arch/ppc64/kernel/ItLpQueue.c +++ b/arch/ppc64/kernel/ItLpQueue.c | |||
@@ -127,14 +127,14 @@ static void hvlpevent_clear_valid( struct HvLpEvent * event ) | |||
127 | event->xFlags.xValid = 0; | 127 | event->xFlags.xValid = 0; |
128 | } | 128 | } |
129 | 129 | ||
130 | unsigned process_hvlpevents(struct pt_regs *regs) | 130 | void process_hvlpevents(struct pt_regs *regs) |
131 | { | 131 | { |
132 | unsigned numIntsProcessed = 0; | 132 | unsigned numIntsProcessed = 0; |
133 | struct HvLpEvent * nextLpEvent; | 133 | struct HvLpEvent * nextLpEvent; |
134 | 134 | ||
135 | /* If we have recursed, just return */ | 135 | /* If we have recursed, just return */ |
136 | if ( !set_inUse() ) | 136 | if ( !set_inUse() ) |
137 | return 0; | 137 | return; |
138 | 138 | ||
139 | if (ItLpQueueInProcess == 0) | 139 | if (ItLpQueueInProcess == 0) |
140 | ItLpQueueInProcess = 1; | 140 | ItLpQueueInProcess = 1; |
@@ -144,9 +144,6 @@ unsigned process_hvlpevents(struct pt_regs *regs) | |||
144 | for (;;) { | 144 | for (;;) { |
145 | nextLpEvent = get_next_hvlpevent(); | 145 | nextLpEvent = get_next_hvlpevent(); |
146 | if ( nextLpEvent ) { | 146 | if ( nextLpEvent ) { |
147 | /* Count events to return to caller | ||
148 | * and count processed events in hvlpevent_queue | ||
149 | */ | ||
150 | ++numIntsProcessed; | 147 | ++numIntsProcessed; |
151 | hvlpevent_queue.xLpIntCount++; | 148 | hvlpevent_queue.xLpIntCount++; |
152 | /* Call appropriate handler here, passing | 149 | /* Call appropriate handler here, passing |
@@ -186,8 +183,6 @@ unsigned process_hvlpevents(struct pt_regs *regs) | |||
186 | clear_inUse(); | 183 | clear_inUse(); |
187 | 184 | ||
188 | get_paca()->lpevent_count += numIntsProcessed; | 185 | get_paca()->lpevent_count += numIntsProcessed; |
189 | |||
190 | return numIntsProcessed; | ||
191 | } | 186 | } |
192 | 187 | ||
193 | static int set_spread_lpevents(char *str) | 188 | static int set_spread_lpevents(char *str) |