diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2006-03-30 07:49:40 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-04-01 06:36:57 -0500 |
commit | 706c8c93ba4865a19e981b9770151a7a63c15794 (patch) | |
tree | 63cbae3a74bfe40adcb1efa9ea5a6e7f6898b8ca /arch | |
parent | 8df83028cf52e3bf68dfd35a4b1a044b326a4a99 (diff) |
[PATCH] powerpc/pseries: Change H_StudlyCaps to H_SHOUTING_CAPS
Also cleans up some nearby whitespace problems.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/lparcfg.c | 22 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 12 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/hvconsole.c | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/hvcserver.c | 22 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/lpar.c | 28 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/vio.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/xics.c | 8 |
8 files changed, 52 insertions, 52 deletions
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index 1b73508ecb2b..8be687700a50 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
@@ -149,17 +149,17 @@ static void log_plpar_hcall_return(unsigned long rc, char *tag) | |||
149 | if (rc == 0) /* success, return */ | 149 | if (rc == 0) /* success, return */ |
150 | return; | 150 | return; |
151 | /* check for null tag ? */ | 151 | /* check for null tag ? */ |
152 | if (rc == H_Hardware) | 152 | if (rc == H_HARDWARE) |
153 | printk(KERN_INFO | 153 | printk(KERN_INFO |
154 | "plpar-hcall (%s) failed with hardware fault\n", tag); | 154 | "plpar-hcall (%s) failed with hardware fault\n", tag); |
155 | else if (rc == H_Function) | 155 | else if (rc == H_FUNCTION) |
156 | printk(KERN_INFO | 156 | printk(KERN_INFO |
157 | "plpar-hcall (%s) failed; function not allowed\n", tag); | 157 | "plpar-hcall (%s) failed; function not allowed\n", tag); |
158 | else if (rc == H_Authority) | 158 | else if (rc == H_AUTHORITY) |
159 | printk(KERN_INFO | 159 | printk(KERN_INFO |
160 | "plpar-hcall (%s) failed; not authorized to this function\n", | 160 | "plpar-hcall (%s) failed; not authorized to this" |
161 | tag); | 161 | " function\n", tag); |
162 | else if (rc == H_Parameter) | 162 | else if (rc == H_PARAMETER) |
163 | printk(KERN_INFO "plpar-hcall (%s) failed; Bad parameter(s)\n", | 163 | printk(KERN_INFO "plpar-hcall (%s) failed; Bad parameter(s)\n", |
164 | tag); | 164 | tag); |
165 | else | 165 | else |
@@ -209,7 +209,7 @@ static void h_pic(unsigned long *pool_idle_time, unsigned long *num_procs) | |||
209 | unsigned long dummy; | 209 | unsigned long dummy; |
210 | rc = plpar_hcall(H_PIC, 0, 0, 0, 0, pool_idle_time, num_procs, &dummy); | 210 | rc = plpar_hcall(H_PIC, 0, 0, 0, 0, pool_idle_time, num_procs, &dummy); |
211 | 211 | ||
212 | if (rc != H_Authority) | 212 | if (rc != H_AUTHORITY) |
213 | log_plpar_hcall_return(rc, "H_PIC"); | 213 | log_plpar_hcall_return(rc, "H_PIC"); |
214 | } | 214 | } |
215 | 215 | ||
@@ -529,13 +529,13 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, | |||
529 | retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, | 529 | retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, |
530 | *new_weight_ptr); | 530 | *new_weight_ptr); |
531 | 531 | ||
532 | if (retval == H_Success || retval == H_Constrained) { | 532 | if (retval == H_SUCCESS || retval == H_CONSTRAINED) { |
533 | retval = count; | 533 | retval = count; |
534 | } else if (retval == H_Busy) { | 534 | } else if (retval == H_BUSY) { |
535 | retval = -EBUSY; | 535 | retval = -EBUSY; |
536 | } else if (retval == H_Hardware) { | 536 | } else if (retval == H_HARDWARE) { |
537 | retval = -EIO; | 537 | retval = -EIO; |
538 | } else if (retval == H_Parameter) { | 538 | } else if (retval == H_PARAMETER) { |
539 | retval = -EINVAL; | 539 | retval = -EINVAL; |
540 | } else { | 540 | } else { |
541 | printk(KERN_WARNING "%s: received unknown hv return code %ld", | 541 | printk(KERN_WARNING "%s: received unknown hv return code %ld", |
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 06636c927a7e..0112318213ab 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -578,18 +578,18 @@ static void rtas_percpu_suspend_me(void *info) | |||
578 | * We use "waiting" to indicate our state. As long | 578 | * We use "waiting" to indicate our state. As long |
579 | * as it is >0, we are still trying to all join up. | 579 | * as it is >0, we are still trying to all join up. |
580 | * If it goes to 0, we have successfully joined up and | 580 | * If it goes to 0, we have successfully joined up and |
581 | * one thread got H_Continue. If any error happens, | 581 | * one thread got H_CONTINUE. If any error happens, |
582 | * we set it to <0. | 582 | * we set it to <0. |
583 | */ | 583 | */ |
584 | local_irq_save(flags); | 584 | local_irq_save(flags); |
585 | do { | 585 | do { |
586 | rc = plpar_hcall_norets(H_JOIN); | 586 | rc = plpar_hcall_norets(H_JOIN); |
587 | smp_rmb(); | 587 | smp_rmb(); |
588 | } while (rc == H_Success && data->waiting > 0); | 588 | } while (rc == H_SUCCESS && data->waiting > 0); |
589 | if (rc == H_Success) | 589 | if (rc == H_SUCCESS) |
590 | goto out; | 590 | goto out; |
591 | 591 | ||
592 | if (rc == H_Continue) { | 592 | if (rc == H_CONTINUE) { |
593 | data->waiting = 0; | 593 | data->waiting = 0; |
594 | data->args->args[data->args->nargs] = | 594 | data->args->args[data->args->nargs] = |
595 | rtas_call(ibm_suspend_me_token, 0, 1, NULL); | 595 | rtas_call(ibm_suspend_me_token, 0, 1, NULL); |
@@ -597,7 +597,7 @@ static void rtas_percpu_suspend_me(void *info) | |||
597 | plpar_hcall_norets(H_PROD,i); | 597 | plpar_hcall_norets(H_PROD,i); |
598 | } else { | 598 | } else { |
599 | data->waiting = -EBUSY; | 599 | data->waiting = -EBUSY; |
600 | printk(KERN_ERR "Error on H_Join hypervisor call\n"); | 600 | printk(KERN_ERR "Error on H_JOIN hypervisor call\n"); |
601 | } | 601 | } |
602 | 602 | ||
603 | out: | 603 | out: |
@@ -624,7 +624,7 @@ static int rtas_ibm_suspend_me(struct rtas_args *args) | |||
624 | printk(KERN_ERR "Error doing global join\n"); | 624 | printk(KERN_ERR "Error doing global join\n"); |
625 | 625 | ||
626 | /* Prod each CPU. This won't hurt, and will wake | 626 | /* Prod each CPU. This won't hurt, and will wake |
627 | * anyone we successfully put to sleep with H_Join | 627 | * anyone we successfully put to sleep with H_JOIN. |
628 | */ | 628 | */ |
629 | for_each_possible_cpu(i) | 629 | for_each_possible_cpu(i) |
630 | plpar_hcall_norets(H_PROD, i); | 630 | plpar_hcall_norets(H_PROD, i); |
diff --git a/arch/powerpc/platforms/pseries/hvconsole.c b/arch/powerpc/platforms/pseries/hvconsole.c index ba6befd96636..a72a987f1d4d 100644 --- a/arch/powerpc/platforms/pseries/hvconsole.c +++ b/arch/powerpc/platforms/pseries/hvconsole.c | |||
@@ -41,7 +41,7 @@ int hvc_get_chars(uint32_t vtermno, char *buf, int count) | |||
41 | unsigned long got; | 41 | unsigned long got; |
42 | 42 | ||
43 | if (plpar_hcall(H_GET_TERM_CHAR, vtermno, 0, 0, 0, &got, | 43 | if (plpar_hcall(H_GET_TERM_CHAR, vtermno, 0, 0, 0, &got, |
44 | (unsigned long *)buf, (unsigned long *)buf+1) == H_Success) | 44 | (unsigned long *)buf, (unsigned long *)buf+1) == H_SUCCESS) |
45 | return got; | 45 | return got; |
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
@@ -69,9 +69,9 @@ int hvc_put_chars(uint32_t vtermno, const char *buf, int count) | |||
69 | 69 | ||
70 | ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, lbuf[0], | 70 | ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, lbuf[0], |
71 | lbuf[1]); | 71 | lbuf[1]); |
72 | if (ret == H_Success) | 72 | if (ret == H_SUCCESS) |
73 | return count; | 73 | return count; |
74 | if (ret == H_Busy) | 74 | if (ret == H_BUSY) |
75 | return 0; | 75 | return 0; |
76 | return -EIO; | 76 | return -EIO; |
77 | } | 77 | } |
diff --git a/arch/powerpc/platforms/pseries/hvcserver.c b/arch/powerpc/platforms/pseries/hvcserver.c index 22bfb5c89db9..fcf4b4cbeaf3 100644 --- a/arch/powerpc/platforms/pseries/hvcserver.c +++ b/arch/powerpc/platforms/pseries/hvcserver.c | |||
@@ -43,21 +43,21 @@ MODULE_VERSION(HVCS_ARCH_VERSION); | |||
43 | static int hvcs_convert(long to_convert) | 43 | static int hvcs_convert(long to_convert) |
44 | { | 44 | { |
45 | switch (to_convert) { | 45 | switch (to_convert) { |
46 | case H_Success: | 46 | case H_SUCCESS: |
47 | return 0; | 47 | return 0; |
48 | case H_Parameter: | 48 | case H_PARAMETER: |
49 | return -EINVAL; | 49 | return -EINVAL; |
50 | case H_Hardware: | 50 | case H_HARDWARE: |
51 | return -EIO; | 51 | return -EIO; |
52 | case H_Busy: | 52 | case H_BUSY: |
53 | case H_LongBusyOrder1msec: | 53 | case H_LONG_BUSY_ORDER_1_MSEC: |
54 | case H_LongBusyOrder10msec: | 54 | case H_LONG_BUSY_ORDER_10_MSEC: |
55 | case H_LongBusyOrder100msec: | 55 | case H_LONG_BUSY_ORDER_100_MSEC: |
56 | case H_LongBusyOrder1sec: | 56 | case H_LONG_BUSY_ORDER_1_SEC: |
57 | case H_LongBusyOrder10sec: | 57 | case H_LONG_BUSY_ORDER_10_SEC: |
58 | case H_LongBusyOrder100sec: | 58 | case H_LONG_BUSY_ORDER_100_SEC: |
59 | return -EBUSY; | 59 | return -EBUSY; |
60 | case H_Function: /* fall through */ | 60 | case H_FUNCTION: /* fall through */ |
61 | default: | 61 | default: |
62 | return -EPERM; | 62 | return -EPERM; |
63 | } | 63 | } |
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index 8952528d31ac..c72c0918b44b 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c | |||
@@ -72,7 +72,7 @@ static void udbg_hvsi_putc(char c) | |||
72 | 72 | ||
73 | do { | 73 | do { |
74 | rc = plpar_put_term_char(vtermno, sizeof(packet), packet); | 74 | rc = plpar_put_term_char(vtermno, sizeof(packet), packet); |
75 | } while (rc == H_Busy); | 75 | } while (rc == H_BUSY); |
76 | } | 76 | } |
77 | 77 | ||
78 | static long hvsi_udbg_buf_len; | 78 | static long hvsi_udbg_buf_len; |
@@ -85,7 +85,7 @@ static int udbg_hvsi_getc_poll(void) | |||
85 | 85 | ||
86 | if (hvsi_udbg_buf_len == 0) { | 86 | if (hvsi_udbg_buf_len == 0) { |
87 | rc = plpar_get_term_char(vtermno, &hvsi_udbg_buf_len, hvsi_udbg_buf); | 87 | rc = plpar_get_term_char(vtermno, &hvsi_udbg_buf_len, hvsi_udbg_buf); |
88 | if (rc != H_Success || hvsi_udbg_buf[0] != 0xff) { | 88 | if (rc != H_SUCCESS || hvsi_udbg_buf[0] != 0xff) { |
89 | /* bad read or non-data packet */ | 89 | /* bad read or non-data packet */ |
90 | hvsi_udbg_buf_len = 0; | 90 | hvsi_udbg_buf_len = 0; |
91 | } else { | 91 | } else { |
@@ -139,7 +139,7 @@ static void udbg_putcLP(char c) | |||
139 | buf[0] = c; | 139 | buf[0] = c; |
140 | do { | 140 | do { |
141 | rc = plpar_put_term_char(vtermno, 1, buf); | 141 | rc = plpar_put_term_char(vtermno, 1, buf); |
142 | } while(rc == H_Busy); | 142 | } while(rc == H_BUSY); |
143 | } | 143 | } |
144 | 144 | ||
145 | /* Buffered chars getc */ | 145 | /* Buffered chars getc */ |
@@ -158,7 +158,7 @@ static int udbg_getc_pollLP(void) | |||
158 | /* get some more chars. */ | 158 | /* get some more chars. */ |
159 | inbuflen = 0; | 159 | inbuflen = 0; |
160 | rc = plpar_get_term_char(vtermno, &inbuflen, buf); | 160 | rc = plpar_get_term_char(vtermno, &inbuflen, buf); |
161 | if (rc != H_Success) | 161 | if (rc != H_SUCCESS) |
162 | inbuflen = 0; /* otherwise inbuflen is garbage */ | 162 | inbuflen = 0; /* otherwise inbuflen is garbage */ |
163 | } | 163 | } |
164 | if (inbuflen <= 0 || inbuflen > 16) { | 164 | if (inbuflen <= 0 || inbuflen > 16) { |
@@ -304,7 +304,7 @@ long pSeries_lpar_hpte_insert(unsigned long hpte_group, | |||
304 | 304 | ||
305 | lpar_rc = plpar_hcall(H_ENTER, flags, hpte_group, hpte_v, | 305 | lpar_rc = plpar_hcall(H_ENTER, flags, hpte_group, hpte_v, |
306 | hpte_r, &slot, &dummy0, &dummy1); | 306 | hpte_r, &slot, &dummy0, &dummy1); |
307 | if (unlikely(lpar_rc == H_PTEG_Full)) { | 307 | if (unlikely(lpar_rc == H_PTEG_FULL)) { |
308 | if (!(vflags & HPTE_V_BOLTED)) | 308 | if (!(vflags & HPTE_V_BOLTED)) |
309 | DBG_LOW(" full\n"); | 309 | DBG_LOW(" full\n"); |
310 | return -1; | 310 | return -1; |
@@ -315,7 +315,7 @@ long pSeries_lpar_hpte_insert(unsigned long hpte_group, | |||
315 | * will fail. However we must catch the failure in hash_page | 315 | * will fail. However we must catch the failure in hash_page |
316 | * or we will loop forever, so return -2 in this case. | 316 | * or we will loop forever, so return -2 in this case. |
317 | */ | 317 | */ |
318 | if (unlikely(lpar_rc != H_Success)) { | 318 | if (unlikely(lpar_rc != H_SUCCESS)) { |
319 | if (!(vflags & HPTE_V_BOLTED)) | 319 | if (!(vflags & HPTE_V_BOLTED)) |
320 | DBG_LOW(" lpar err %d\n", lpar_rc); | 320 | DBG_LOW(" lpar err %d\n", lpar_rc); |
321 | return -2; | 321 | return -2; |
@@ -346,9 +346,9 @@ static long pSeries_lpar_hpte_remove(unsigned long hpte_group) | |||
346 | /* don't remove a bolted entry */ | 346 | /* don't remove a bolted entry */ |
347 | lpar_rc = plpar_pte_remove(H_ANDCOND, hpte_group + slot_offset, | 347 | lpar_rc = plpar_pte_remove(H_ANDCOND, hpte_group + slot_offset, |
348 | (0x1UL << 4), &dummy1, &dummy2); | 348 | (0x1UL << 4), &dummy1, &dummy2); |
349 | if (lpar_rc == H_Success) | 349 | if (lpar_rc == H_SUCCESS) |
350 | return i; | 350 | return i; |
351 | BUG_ON(lpar_rc != H_Not_Found); | 351 | BUG_ON(lpar_rc != H_NOT_FOUND); |
352 | 352 | ||
353 | slot_offset++; | 353 | slot_offset++; |
354 | slot_offset &= 0x7; | 354 | slot_offset &= 0x7; |
@@ -391,14 +391,14 @@ static long pSeries_lpar_hpte_updatepp(unsigned long slot, | |||
391 | 391 | ||
392 | lpar_rc = plpar_pte_protect(flags, slot, want_v & HPTE_V_AVPN); | 392 | lpar_rc = plpar_pte_protect(flags, slot, want_v & HPTE_V_AVPN); |
393 | 393 | ||
394 | if (lpar_rc == H_Not_Found) { | 394 | if (lpar_rc == H_NOT_FOUND) { |
395 | DBG_LOW("not found !\n"); | 395 | DBG_LOW("not found !\n"); |
396 | return -1; | 396 | return -1; |
397 | } | 397 | } |
398 | 398 | ||
399 | DBG_LOW("ok\n"); | 399 | DBG_LOW("ok\n"); |
400 | 400 | ||
401 | BUG_ON(lpar_rc != H_Success); | 401 | BUG_ON(lpar_rc != H_SUCCESS); |
402 | 402 | ||
403 | return 0; | 403 | return 0; |
404 | } | 404 | } |
@@ -417,7 +417,7 @@ static unsigned long pSeries_lpar_hpte_getword0(unsigned long slot) | |||
417 | 417 | ||
418 | lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1); | 418 | lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1); |
419 | 419 | ||
420 | BUG_ON(lpar_rc != H_Success); | 420 | BUG_ON(lpar_rc != H_SUCCESS); |
421 | 421 | ||
422 | return dword0; | 422 | return dword0; |
423 | } | 423 | } |
@@ -468,7 +468,7 @@ static void pSeries_lpar_hpte_updateboltedpp(unsigned long newpp, | |||
468 | flags = newpp & 7; | 468 | flags = newpp & 7; |
469 | lpar_rc = plpar_pte_protect(flags, slot, 0); | 469 | lpar_rc = plpar_pte_protect(flags, slot, 0); |
470 | 470 | ||
471 | BUG_ON(lpar_rc != H_Success); | 471 | BUG_ON(lpar_rc != H_SUCCESS); |
472 | } | 472 | } |
473 | 473 | ||
474 | static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va, | 474 | static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va, |
@@ -484,10 +484,10 @@ static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va, | |||
484 | want_v = hpte_encode_v(va, psize); | 484 | want_v = hpte_encode_v(va, psize); |
485 | lpar_rc = plpar_pte_remove(H_AVPN, slot, want_v & HPTE_V_AVPN, | 485 | lpar_rc = plpar_pte_remove(H_AVPN, slot, want_v & HPTE_V_AVPN, |
486 | &dummy1, &dummy2); | 486 | &dummy1, &dummy2); |
487 | if (lpar_rc == H_Not_Found) | 487 | if (lpar_rc == H_NOT_FOUND) |
488 | return; | 488 | return; |
489 | 489 | ||
490 | BUG_ON(lpar_rc != H_Success); | 490 | BUG_ON(lpar_rc != H_SUCCESS); |
491 | } | 491 | } |
492 | 492 | ||
493 | /* | 493 | /* |
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index b2fbf8ba8fbb..5eb55ef1c91c 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -463,7 +463,7 @@ static void pseries_dedicated_idle_sleep(void) | |||
463 | * very low priority. The cede enables interrupts, which | 463 | * very low priority. The cede enables interrupts, which |
464 | * doesn't matter here. | 464 | * doesn't matter here. |
465 | */ | 465 | */ |
466 | if (!lppaca[cpu ^ 1].idle || poll_pending() == H_Pending) | 466 | if (!lppaca[cpu ^ 1].idle || poll_pending() == H_PENDING) |
467 | cede_processor(); | 467 | cede_processor(); |
468 | 468 | ||
469 | out: | 469 | out: |
diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms/pseries/vio.c index 866379b80c09..8e53e04ada8b 100644 --- a/arch/powerpc/platforms/pseries/vio.c +++ b/arch/powerpc/platforms/pseries/vio.c | |||
@@ -258,7 +258,7 @@ EXPORT_SYMBOL(vio_find_node); | |||
258 | int vio_enable_interrupts(struct vio_dev *dev) | 258 | int vio_enable_interrupts(struct vio_dev *dev) |
259 | { | 259 | { |
260 | int rc = h_vio_signal(dev->unit_address, VIO_IRQ_ENABLE); | 260 | int rc = h_vio_signal(dev->unit_address, VIO_IRQ_ENABLE); |
261 | if (rc != H_Success) | 261 | if (rc != H_SUCCESS) |
262 | printk(KERN_ERR "vio: Error 0x%x enabling interrupts\n", rc); | 262 | printk(KERN_ERR "vio: Error 0x%x enabling interrupts\n", rc); |
263 | return rc; | 263 | return rc; |
264 | } | 264 | } |
@@ -267,7 +267,7 @@ EXPORT_SYMBOL(vio_enable_interrupts); | |||
267 | int vio_disable_interrupts(struct vio_dev *dev) | 267 | int vio_disable_interrupts(struct vio_dev *dev) |
268 | { | 268 | { |
269 | int rc = h_vio_signal(dev->unit_address, VIO_IRQ_DISABLE); | 269 | int rc = h_vio_signal(dev->unit_address, VIO_IRQ_DISABLE); |
270 | if (rc != H_Success) | 270 | if (rc != H_SUCCESS) |
271 | printk(KERN_ERR "vio: Error 0x%x disabling interrupts\n", rc); | 271 | printk(KERN_ERR "vio: Error 0x%x disabling interrupts\n", rc); |
272 | return rc; | 272 | return rc; |
273 | } | 273 | } |
diff --git a/arch/powerpc/platforms/pseries/xics.c b/arch/powerpc/platforms/pseries/xics.c index 4864cb32be25..2d60ea30fed6 100644 --- a/arch/powerpc/platforms/pseries/xics.c +++ b/arch/powerpc/platforms/pseries/xics.c | |||
@@ -168,7 +168,7 @@ static int pSeriesLP_xirr_info_get(int n_cpu) | |||
168 | unsigned long return_value; | 168 | unsigned long return_value; |
169 | 169 | ||
170 | lpar_rc = plpar_xirr(&return_value); | 170 | lpar_rc = plpar_xirr(&return_value); |
171 | if (lpar_rc != H_Success) | 171 | if (lpar_rc != H_SUCCESS) |
172 | panic(" bad return code xirr - rc = %lx \n", lpar_rc); | 172 | panic(" bad return code xirr - rc = %lx \n", lpar_rc); |
173 | return (int)return_value; | 173 | return (int)return_value; |
174 | } | 174 | } |
@@ -179,7 +179,7 @@ static void pSeriesLP_xirr_info_set(int n_cpu, int value) | |||
179 | unsigned long val64 = value & 0xffffffff; | 179 | unsigned long val64 = value & 0xffffffff; |
180 | 180 | ||
181 | lpar_rc = plpar_eoi(val64); | 181 | lpar_rc = plpar_eoi(val64); |
182 | if (lpar_rc != H_Success) | 182 | if (lpar_rc != H_SUCCESS) |
183 | panic("bad return code EOI - rc = %ld, value=%lx\n", lpar_rc, | 183 | panic("bad return code EOI - rc = %ld, value=%lx\n", lpar_rc, |
184 | val64); | 184 | val64); |
185 | } | 185 | } |
@@ -189,7 +189,7 @@ void pSeriesLP_cppr_info(int n_cpu, u8 value) | |||
189 | unsigned long lpar_rc; | 189 | unsigned long lpar_rc; |
190 | 190 | ||
191 | lpar_rc = plpar_cppr(value); | 191 | lpar_rc = plpar_cppr(value); |
192 | if (lpar_rc != H_Success) | 192 | if (lpar_rc != H_SUCCESS) |
193 | panic("bad return code cppr - rc = %lx\n", lpar_rc); | 193 | panic("bad return code cppr - rc = %lx\n", lpar_rc); |
194 | } | 194 | } |
195 | 195 | ||
@@ -198,7 +198,7 @@ static void pSeriesLP_qirr_info(int n_cpu , u8 value) | |||
198 | unsigned long lpar_rc; | 198 | unsigned long lpar_rc; |
199 | 199 | ||
200 | lpar_rc = plpar_ipi(get_hard_smp_processor_id(n_cpu), value); | 200 | lpar_rc = plpar_ipi(get_hard_smp_processor_id(n_cpu), value); |
201 | if (lpar_rc != H_Success) | 201 | if (lpar_rc != H_SUCCESS) |
202 | panic("bad return code qirr - rc = %lx\n", lpar_rc); | 202 | panic("bad return code qirr - rc = %lx\n", lpar_rc); |
203 | } | 203 | } |
204 | 204 | ||