aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon/xmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
-rw-r--r--arch/powerpc/xmon/xmon.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index e8c7a937955e..07a8508cb7fa 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -320,6 +320,7 @@ static inline void disable_surveillance(void)
320#ifdef CONFIG_PPC_PSERIES 320#ifdef CONFIG_PPC_PSERIES
321 /* Since this can't be a module, args should end up below 4GB. */ 321 /* Since this can't be a module, args should end up below 4GB. */
322 static struct rtas_args args; 322 static struct rtas_args args;
323 int token;
323 324
324 /* 325 /*
325 * At this point we have got all the cpus we can into 326 * At this point we have got all the cpus we can into
@@ -328,17 +329,12 @@ static inline void disable_surveillance(void)
328 * If we did try to take rtas.lock there would be a 329 * If we did try to take rtas.lock there would be a
329 * real possibility of deadlock. 330 * real possibility of deadlock.
330 */ 331 */
331 args.token = rtas_token("set-indicator"); 332 token = rtas_token("set-indicator");
332 if (args.token == RTAS_UNKNOWN_SERVICE) 333 if (token == RTAS_UNKNOWN_SERVICE)
333 return; 334 return;
334 args.token = cpu_to_be32(args.token); 335
335 args.nargs = cpu_to_be32(3); 336 rtas_call_unlocked(&args, token, 3, 1, NULL, SURVEILLANCE_TOKEN, 0, 0);
336 args.nret = cpu_to_be32(1); 337
337 args.rets = &args.args[3];
338 args.args[0] = cpu_to_be32(SURVEILLANCE_TOKEN);
339 args.args[1] = 0;
340 args.args[2] = 0;
341 enter_rtas(__pa(&args));
342#endif /* CONFIG_PPC_PSERIES */ 338#endif /* CONFIG_PPC_PSERIES */
343} 339}
344 340