aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNathan Fontenot <nfont@austin.ibm.com>2008-07-23 14:25:00 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-25 01:44:40 -0400
commit545500b307658ad5783e0f3a52a32b97b2dfaed2 (patch)
treec5faee034665a60af1e8a1e2152b0ccb088bdef1 /arch
parent80c60bf9b96f6108c630d90efc073cd520801e6c (diff)
powerpc/pseries: Remove extraneous error reporting for hcall failures in lparcfg
Remove the extraneous error reporting used when a hcall made from lparcfg fails. Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com> Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com> Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/lparcfg.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c
index 827a5726a035..20278ece31dc 100644
--- a/arch/powerpc/kernel/lparcfg.c
+++ b/arch/powerpc/kernel/lparcfg.c
@@ -129,33 +129,6 @@ static int iseries_lparcfg_data(struct seq_file *m, void *v)
129/* 129/*
130 * Methods used to fetch LPAR data when running on a pSeries platform. 130 * Methods used to fetch LPAR data when running on a pSeries platform.
131 */ 131 */
132static void log_plpar_hcall_return(unsigned long rc, char *tag)
133{
134 switch(rc) {
135 case 0:
136 return;
137 case H_HARDWARE:
138 printk(KERN_INFO "plpar-hcall (%s) "
139 "Hardware fault\n", tag);
140 return;
141 case H_FUNCTION:
142 printk(KERN_INFO "plpar-hcall (%s) "
143 "Function not allowed\n", tag);
144 return;
145 case H_AUTHORITY:
146 printk(KERN_INFO "plpar-hcall (%s) "
147 "Not authorized to this function\n", tag);
148 return;
149 case H_PARAMETER:
150 printk(KERN_INFO "plpar-hcall (%s) "
151 "Bad parameter(s)\n",tag);
152 return;
153 default:
154 printk(KERN_INFO "plpar-hcall (%s) "
155 "Unexpected rc(0x%lx)\n", tag, rc);
156 }
157}
158
159/* 132/*
160 * H_GET_PPP hcall returns info in 4 parms. 133 * H_GET_PPP hcall returns info in 4 parms.
161 * entitled_capacity,unallocated_capacity, 134 * entitled_capacity,unallocated_capacity,
@@ -191,8 +164,6 @@ static unsigned int h_get_ppp(unsigned long *entitled,
191 *aggregation = retbuf[2]; 164 *aggregation = retbuf[2];
192 *resource = retbuf[3]; 165 *resource = retbuf[3];
193 166
194 log_plpar_hcall_return(rc, "H_GET_PPP");
195
196 return rc; 167 return rc;
197} 168}
198 169
@@ -205,9 +176,6 @@ static void h_pic(unsigned long *pool_idle_time, unsigned long *num_procs)
205 176
206 *pool_idle_time = retbuf[0]; 177 *pool_idle_time = retbuf[0];
207 *num_procs = retbuf[1]; 178 *num_procs = retbuf[1];
208
209 if (rc != H_AUTHORITY)
210 log_plpar_hcall_return(rc, "H_PIC");
211} 179}
212 180
213#define SPLPAR_CHARACTERISTICS_TOKEN 20 181#define SPLPAR_CHARACTERISTICS_TOKEN 20