mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
[PATCH] ppc64: Cleanup whitespace in arch/ppc64/kernel/ItLpQueue.c
Just cleanup white space. 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>
This commit is contained in:
parent
9b0470200a
commit
38fcdcfe38
@ -76,13 +76,13 @@ static struct HvLpEvent * get_next_hvlpevent(void)
|
||||
{
|
||||
struct HvLpEvent * nextLpEvent =
|
||||
(struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr;
|
||||
if ( nextLpEvent->xFlags.xValid ) {
|
||||
if (nextLpEvent->xFlags.xValid) {
|
||||
/* rmb() needed only for weakly consistent machines (regatta) */
|
||||
rmb();
|
||||
/* Set pointer to next potential event */
|
||||
hvlpevent_queue.xSlicCurEventPtr += ((nextLpEvent->xSizeMinus1 +
|
||||
LpEventAlign ) /
|
||||
LpEventAlign ) *
|
||||
LpEventAlign) /
|
||||
LpEventAlign) *
|
||||
LpEventAlign;
|
||||
/* Wrap to beginning if no room at end */
|
||||
if (hvlpevent_queue.xSlicCurEventPtr > hvlpevent_queue.xSlicLastValidEventPtr)
|
||||
@ -107,15 +107,15 @@ int hvlpevent_is_pending(void)
|
||||
return next_event->xFlags.xValid | hvlpevent_queue.xPlicOverflowIntPending;
|
||||
}
|
||||
|
||||
static void hvlpevent_clear_valid( struct HvLpEvent * event )
|
||||
static void hvlpevent_clear_valid(struct HvLpEvent * event)
|
||||
{
|
||||
/* Clear the valid bit of the event
|
||||
* Also clear bits within this event that might
|
||||
* look like valid bits (on 64-byte boundaries)
|
||||
*/
|
||||
unsigned extra = (( event->xSizeMinus1 + LpEventAlign ) /
|
||||
LpEventAlign ) - 1;
|
||||
switch ( extra ) {
|
||||
unsigned extra = ((event->xSizeMinus1 + LpEventAlign) /
|
||||
LpEventAlign) - 1;
|
||||
switch (extra) {
|
||||
case 3:
|
||||
((struct HvLpEvent*)((char*)event+3*LpEventAlign))->xFlags.xValid=0;
|
||||
case 2:
|
||||
@ -144,7 +144,7 @@ void process_hvlpevents(struct pt_regs *regs)
|
||||
|
||||
for (;;) {
|
||||
nextLpEvent = get_next_hvlpevent();
|
||||
if ( nextLpEvent ) {
|
||||
if (nextLpEvent) {
|
||||
/* Call appropriate handler here, passing
|
||||
* a pointer to the LpEvent. The handler
|
||||
* must make a copy of the LpEvent if it
|
||||
@ -158,21 +158,21 @@ void process_hvlpevents(struct pt_regs *regs)
|
||||
* registered for, so no type check is necessary
|
||||
* here!
|
||||
*/
|
||||
if ( nextLpEvent->xType < HvLpEvent_Type_NumTypes )
|
||||
if (nextLpEvent->xType < HvLpEvent_Type_NumTypes)
|
||||
__get_cpu_var(hvlpevent_counts)[nextLpEvent->xType]++;
|
||||
if ( nextLpEvent->xType < HvLpEvent_Type_NumTypes &&
|
||||
lpEventHandler[nextLpEvent->xType] )
|
||||
if (nextLpEvent->xType < HvLpEvent_Type_NumTypes &&
|
||||
lpEventHandler[nextLpEvent->xType])
|
||||
lpEventHandler[nextLpEvent->xType](nextLpEvent, regs);
|
||||
else
|
||||
printk(KERN_INFO "Unexpected Lp Event type=%d\n", nextLpEvent->xType );
|
||||
|
||||
hvlpevent_clear_valid( nextLpEvent );
|
||||
} else if ( hvlpevent_queue.xPlicOverflowIntPending )
|
||||
hvlpevent_clear_valid(nextLpEvent);
|
||||
} else if (hvlpevent_queue.xPlicOverflowIntPending)
|
||||
/*
|
||||
* No more valid events. If overflow events are
|
||||
* pending process them
|
||||
*/
|
||||
HvCallEvent_getOverflowLpEvents( hvlpevent_queue.xIndex);
|
||||
HvCallEvent_getOverflowLpEvents(hvlpevent_queue.xIndex);
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user