[S390] Move psw_set_key.

Move psw_set_key() from ptrace.h to processor.h which is a more
suitable place for it. In addition the moves makes the function
invisible to user space.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Heiko Carstens
2007-06-19 13:10:06 +02:00
committed by Martin Schwidefsky
parent bca0fb8683
commit dc74d7f996
2 changed files with 6 additions and 8 deletions

View File

@@ -216,6 +216,11 @@ static inline void cpu_relax(void)
barrier();
}
static inline void psw_set_key(unsigned int key)
{
asm volatile("spka 0(%0)" : : "d" (key));
}
/*
* Set PSW to specified value.
*/