diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-05-10 09:56:34 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-16 14:42:42 +0200 |
commit | 0a16ba7866fd5cd802d49801a099f4c558ce99c7 (patch) | |
tree | 17f281a9944060b198c54720c73fa652e7474935 /arch | |
parent | 54c27791227756b37504bd35b9ad0a40d1ae4c4b (diff) | |
download | linux-stable-0a16ba7866fd5cd802d49801a099f4c558ce99c7.tar.gz linux-stable-0a16ba7866fd5cd802d49801a099f4c558ce99c7.tar.bz2 linux-stable-0a16ba7866fd5cd802d49801a099f4c558ce99c7.zip |
s390/pfault: use __set_task_state
Use __set_task_state() instead of set_task_state(). Saves a couple of
instructions, since the memory barrier is not needed here.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/mm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index 4306f5e75a33..a9c11aa57450 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c @@ -586,7 +586,7 @@ static void pfault_interrupt(struct ext_code ext_code, /* signal bit not set -> a real page is missing. */ if (tsk->thread.pfault_wait == 1) { /* Already on the list with a reference: put to sleep */ - set_task_state(tsk, TASK_UNINTERRUPTIBLE); + __set_task_state(tsk, TASK_UNINTERRUPTIBLE); set_tsk_need_resched(tsk); } else if (tsk->thread.pfault_wait == -1) { /* Completion interrupt was faster than the initial @@ -602,7 +602,7 @@ static void pfault_interrupt(struct ext_code ext_code, get_task_struct(tsk); tsk->thread.pfault_wait = 1; list_add(&tsk->thread.list, &pfault_list); - set_task_state(tsk, TASK_UNINTERRUPTIBLE); + __set_task_state(tsk, TASK_UNINTERRUPTIBLE); set_tsk_need_resched(tsk); } } |