diff options
-rw-r--r-- | arch/ppc64/kernel/ItLpQueue.c | 12 | ||||
-rw-r--r-- | arch/ppc64/kernel/idle.c | 4 | ||||
-rw-r--r-- | arch/ppc64/kernel/irq.c | 4 | ||||
-rw-r--r-- | arch/ppc64/kernel/mf.c | 4 | ||||
-rw-r--r-- | arch/ppc64/kernel/time.c | 4 | ||||
-rw-r--r-- | include/asm-ppc64/iSeries/ItLpQueue.h | 4 |
6 files changed, 16 insertions, 16 deletions
diff --git a/arch/ppc64/kernel/ItLpQueue.c b/arch/ppc64/kernel/ItLpQueue.c index e55fe1a2725f..a81e49b91af0 100644 --- a/arch/ppc64/kernel/ItLpQueue.c +++ b/arch/ppc64/kernel/ItLpQueue.c | |||
@@ -70,7 +70,7 @@ static __inline__ void clear_inUse(void) | |||
70 | extern LpEventHandler lpEventHandler[HvLpEvent_Type_NumTypes]; | 70 | extern LpEventHandler lpEventHandler[HvLpEvent_Type_NumTypes]; |
71 | unsigned long ItLpQueueInProcess = 0; | 71 | unsigned long ItLpQueueInProcess = 0; |
72 | 72 | ||
73 | static struct HvLpEvent * ItLpQueue_getNextLpEvent(void) | 73 | static struct HvLpEvent * get_next_hvlpevent(void) |
74 | { | 74 | { |
75 | struct HvLpEvent * nextLpEvent = | 75 | struct HvLpEvent * nextLpEvent = |
76 | (struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr; | 76 | (struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr; |
@@ -94,7 +94,7 @@ static struct HvLpEvent * ItLpQueue_getNextLpEvent(void) | |||
94 | 94 | ||
95 | static unsigned long spread_lpevents = NR_CPUS; | 95 | static unsigned long spread_lpevents = NR_CPUS; |
96 | 96 | ||
97 | int ItLpQueue_isLpIntPending(void) | 97 | int hvlpevent_is_pending(void) |
98 | { | 98 | { |
99 | struct HvLpEvent *next_event; | 99 | struct HvLpEvent *next_event; |
100 | 100 | ||
@@ -105,7 +105,7 @@ int ItLpQueue_isLpIntPending(void) | |||
105 | return next_event->xFlags.xValid | hvlpevent_queue.xPlicOverflowIntPending; | 105 | return next_event->xFlags.xValid | hvlpevent_queue.xPlicOverflowIntPending; |
106 | } | 106 | } |
107 | 107 | ||
108 | static void ItLpQueue_clearValid( struct HvLpEvent * event ) | 108 | static void hvlpevent_clear_valid( struct HvLpEvent * event ) |
109 | { | 109 | { |
110 | /* Clear the valid bit of the event | 110 | /* Clear the valid bit of the event |
111 | * Also clear bits within this event that might | 111 | * Also clear bits within this event that might |
@@ -127,7 +127,7 @@ static void ItLpQueue_clearValid( struct HvLpEvent * event ) | |||
127 | event->xFlags.xValid = 0; | 127 | event->xFlags.xValid = 0; |
128 | } | 128 | } |
129 | 129 | ||
130 | unsigned ItLpQueue_process(struct pt_regs *regs) | 130 | unsigned process_hvlpevents(struct pt_regs *regs) |
131 | { | 131 | { |
132 | unsigned numIntsProcessed = 0; | 132 | unsigned numIntsProcessed = 0; |
133 | struct HvLpEvent * nextLpEvent; | 133 | struct HvLpEvent * nextLpEvent; |
@@ -142,7 +142,7 @@ unsigned ItLpQueue_process(struct pt_regs *regs) | |||
142 | BUG(); | 142 | BUG(); |
143 | 143 | ||
144 | for (;;) { | 144 | for (;;) { |
145 | nextLpEvent = ItLpQueue_getNextLpEvent(); | 145 | nextLpEvent = get_next_hvlpevent(); |
146 | if ( nextLpEvent ) { | 146 | if ( nextLpEvent ) { |
147 | /* Count events to return to caller | 147 | /* Count events to return to caller |
148 | * and count processed events in hvlpevent_queue | 148 | * and count processed events in hvlpevent_queue |
@@ -170,7 +170,7 @@ unsigned ItLpQueue_process(struct pt_regs *regs) | |||
170 | else | 170 | else |
171 | printk(KERN_INFO "Unexpected Lp Event type=%d\n", nextLpEvent->xType ); | 171 | printk(KERN_INFO "Unexpected Lp Event type=%d\n", nextLpEvent->xType ); |
172 | 172 | ||
173 | ItLpQueue_clearValid( nextLpEvent ); | 173 | hvlpevent_clear_valid( nextLpEvent ); |
174 | } else if ( hvlpevent_queue.xPlicOverflowIntPending ) | 174 | } else if ( hvlpevent_queue.xPlicOverflowIntPending ) |
175 | /* | 175 | /* |
176 | * No more valid events. If overflow events are | 176 | * No more valid events. If overflow events are |
diff --git a/arch/ppc64/kernel/idle.c b/arch/ppc64/kernel/idle.c index a7ebd0238d39..08952c7e6216 100644 --- a/arch/ppc64/kernel/idle.c +++ b/arch/ppc64/kernel/idle.c | |||
@@ -88,7 +88,7 @@ static int iSeries_idle(void) | |||
88 | 88 | ||
89 | while (1) { | 89 | while (1) { |
90 | if (lpaca->lppaca.shared_proc) { | 90 | if (lpaca->lppaca.shared_proc) { |
91 | if (ItLpQueue_isLpIntPending()) | 91 | if (hvlpevent_is_pending()) |
92 | process_iSeries_events(); | 92 | process_iSeries_events(); |
93 | if (!need_resched()) | 93 | if (!need_resched()) |
94 | yield_shared_processor(); | 94 | yield_shared_processor(); |
@@ -100,7 +100,7 @@ static int iSeries_idle(void) | |||
100 | 100 | ||
101 | while (!need_resched()) { | 101 | while (!need_resched()) { |
102 | HMT_medium(); | 102 | HMT_medium(); |
103 | if (ItLpQueue_isLpIntPending()) | 103 | if (hvlpevent_is_pending()) |
104 | process_iSeries_events(); | 104 | process_iSeries_events(); |
105 | HMT_low(); | 105 | HMT_low(); |
106 | } | 106 | } |
diff --git a/arch/ppc64/kernel/irq.c b/arch/ppc64/kernel/irq.c index 46a7151ad6d5..bd4b035af622 100644 --- a/arch/ppc64/kernel/irq.c +++ b/arch/ppc64/kernel/irq.c | |||
@@ -294,8 +294,8 @@ void do_IRQ(struct pt_regs *regs) | |||
294 | iSeries_smp_message_recv(regs); | 294 | iSeries_smp_message_recv(regs); |
295 | } | 295 | } |
296 | #endif /* CONFIG_SMP */ | 296 | #endif /* CONFIG_SMP */ |
297 | if (ItLpQueue_isLpIntPending()) | 297 | if (hvlpevent_is_pending()) |
298 | lpevent_count += ItLpQueue_process(regs); | 298 | lpevent_count += process_hvlpevents(regs); |
299 | 299 | ||
300 | irq_exit(); | 300 | irq_exit(); |
301 | 301 | ||
diff --git a/arch/ppc64/kernel/mf.c b/arch/ppc64/kernel/mf.c index ef9206998028..609bf1bda7b8 100644 --- a/arch/ppc64/kernel/mf.c +++ b/arch/ppc64/kernel/mf.c | |||
@@ -802,8 +802,8 @@ int mf_get_boot_rtc(struct rtc_time *tm) | |||
802 | /* We need to poll here as we are not yet taking interrupts */ | 802 | /* We need to poll here as we are not yet taking interrupts */ |
803 | while (rtc_data.busy) { | 803 | while (rtc_data.busy) { |
804 | extern unsigned long lpevent_count; | 804 | extern unsigned long lpevent_count; |
805 | if (ItLpQueue_isLpIntPending()) | 805 | if (hvlpevent_is_pending()) |
806 | lpevent_count += ItLpQueue_process(NULL); | 806 | lpevent_count += process_hvlpevents(NULL); |
807 | } | 807 | } |
808 | return rtc_set_tm(rtc_data.rc, rtc_data.ce_msg.ce_msg, tm); | 808 | return rtc_set_tm(rtc_data.rc, rtc_data.ce_msg.ce_msg, tm); |
809 | } | 809 | } |
diff --git a/arch/ppc64/kernel/time.c b/arch/ppc64/kernel/time.c index c133f9c28c57..f9c18400ebf5 100644 --- a/arch/ppc64/kernel/time.c +++ b/arch/ppc64/kernel/time.c | |||
@@ -367,8 +367,8 @@ int timer_interrupt(struct pt_regs * regs) | |||
367 | set_dec(next_dec); | 367 | set_dec(next_dec); |
368 | 368 | ||
369 | #ifdef CONFIG_PPC_ISERIES | 369 | #ifdef CONFIG_PPC_ISERIES |
370 | if (ItLpQueue_isLpIntPending()) | 370 | if (hvlpevent_is_pending()) |
371 | lpevent_count += ItLpQueue_process(regs); | 371 | lpevent_count += process_hvlpevents(regs); |
372 | #endif | 372 | #endif |
373 | 373 | ||
374 | /* collect purr register values often, for accurate calculations */ | 374 | /* collect purr register values often, for accurate calculations */ |
diff --git a/include/asm-ppc64/iSeries/ItLpQueue.h b/include/asm-ppc64/iSeries/ItLpQueue.h index bebfb364f556..f0f24a39ff6d 100644 --- a/include/asm-ppc64/iSeries/ItLpQueue.h +++ b/include/asm-ppc64/iSeries/ItLpQueue.h | |||
@@ -76,8 +76,8 @@ struct hvlpevent_queue { | |||
76 | 76 | ||
77 | extern struct hvlpevent_queue hvlpevent_queue; | 77 | extern struct hvlpevent_queue hvlpevent_queue; |
78 | 78 | ||
79 | extern int ItLpQueue_isLpIntPending(void); | 79 | extern int hvlpevent_is_pending(void); |
80 | extern unsigned ItLpQueue_process(struct pt_regs *); | 80 | extern unsigned process_hvlpevents(struct pt_regs *); |
81 | extern void setup_hvlpevent_queue(void); | 81 | extern void setup_hvlpevent_queue(void); |
82 | 82 | ||
83 | #endif /* _ITLPQUEUE_H */ | 83 | #endif /* _ITLPQUEUE_H */ |