diff options
-rw-r--r-- | arch/powerpc/kernel/lparcfg.c | 32 |
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 | */ |
132 | static 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 |