diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-11 22:50:24 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 22:50:24 -0700 |
| commit | ec19a28db34aeb29720c658e5ebf4e60ccee4f6d (patch) | |
| tree | 13809ff407b1776573ee579613eef5c1f020832e | |
| parent | 9ed9e7e5eb0ab64f58ef41e36779cb96abc17076 (diff) | |
[PATCH] ppc64: Remove unused rtas functions
From: Joel Schopp <jschopp@austin.ibm.com>
I was looking at rtas serialization for reasons I won't go into here.
While wandering through the code I found that two functions were not
properly serialized. phys_call_rtas and phys_call_rtas_display_status are
the functions. After looking further they are redundant and not
used anywhere at all.
| -rw-r--r-- | arch/ppc64/kernel/rtas.c | 36 | ||||
| -rw-r--r-- | include/asm-ppc64/rtas.h | 2 |
2 files changed, 0 insertions, 38 deletions
diff --git a/arch/ppc64/kernel/rtas.c b/arch/ppc64/kernel/rtas.c index 4a27c3d8312c..ff0453726c9e 100644 --- a/arch/ppc64/kernel/rtas.c +++ b/arch/ppc64/kernel/rtas.c @@ -66,42 +66,6 @@ spinlock_t rtas_data_buf_lock = SPIN_LOCK_UNLOCKED; char rtas_data_buf[RTAS_DATA_BUF_SIZE]__page_aligned; void -phys_call_rtas(int token, int nargs, int nret, ...) -{ - va_list list; - unsigned long offset = reloc_offset(); - struct rtas_args *rtas = PTRRELOC(&(get_paca()->xRtas)); - int i; - - rtas->token = token; - rtas->nargs = nargs; - rtas->nret = nret; - rtas->rets = (rtas_arg_t *)PTRRELOC(&(rtas->args[nargs])); - - va_start(list, nret); - for (i = 0; i < nargs; i++) - rtas->args[i] = (rtas_arg_t)LONG_LSW(va_arg(list, ulong)); - va_end(list); - - enter_rtas(rtas); -} - -void -phys_call_rtas_display_status(char c) -{ - unsigned long offset = reloc_offset(); - struct rtas_args *rtas = PTRRELOC(&(get_paca()->xRtas)); - - rtas->token = 10; - rtas->nargs = 1; - rtas->nret = 1; - rtas->rets = (rtas_arg_t *)PTRRELOC(&(rtas->args[1])); - rtas->args[0] = (int)c; - - enter_rtas(rtas); -} - -void call_rtas_display_status(char c) { struct rtas_args *rtas = &(get_paca()->xRtas); diff --git a/include/asm-ppc64/rtas.h b/include/asm-ppc64/rtas.h index 7f6139064c7c..47232af7b278 100644 --- a/include/asm-ppc64/rtas.h +++ b/include/asm-ppc64/rtas.h @@ -169,8 +169,6 @@ extern struct rtas_t rtas; extern void enter_rtas(struct rtas_args *); extern int rtas_token(const char *service); extern long rtas_call(int token, int, int, unsigned long *, ...); -extern void phys_call_rtas(int, int, int, ...); -extern void phys_call_rtas_display_status(char); extern void call_rtas_display_status(char); extern void rtas_restart(char *cmd); extern void rtas_power_off(void); |
