diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-05-10 03:56:34 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-16 08:42:42 -0400 |
commit | 0a16ba7866fd5cd802d49801a099f4c558ce99c7 (patch) | |
tree | 17f281a9944060b198c54720c73fa652e7474935 /arch/s390/mm | |
parent | 54c27791227756b37504bd35b9ad0a40d1ae4c4b (diff) |
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/s390/mm')
-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, | |||
586 | /* signal bit not set -> a real page is missing. */ | 586 | /* signal bit not set -> a real page is missing. */ |
587 | if (tsk->thread.pfault_wait == 1) { | 587 | if (tsk->thread.pfault_wait == 1) { |
588 | /* Already on the list with a reference: put to sleep */ | 588 | /* Already on the list with a reference: put to sleep */ |
589 | set_task_state(tsk, TASK_UNINTERRUPTIBLE); | 589 | __set_task_state(tsk, TASK_UNINTERRUPTIBLE); |
590 | set_tsk_need_resched(tsk); | 590 | set_tsk_need_resched(tsk); |
591 | } else if (tsk->thread.pfault_wait == -1) { | 591 | } else if (tsk->thread.pfault_wait == -1) { |
592 | /* Completion interrupt was faster than the initial | 592 | /* Completion interrupt was faster than the initial |
@@ -602,7 +602,7 @@ static void pfault_interrupt(struct ext_code ext_code, | |||
602 | get_task_struct(tsk); | 602 | get_task_struct(tsk); |
603 | tsk->thread.pfault_wait = 1; | 603 | tsk->thread.pfault_wait = 1; |
604 | list_add(&tsk->thread.list, &pfault_list); | 604 | list_add(&tsk->thread.list, &pfault_list); |
605 | set_task_state(tsk, TASK_UNINTERRUPTIBLE); | 605 | __set_task_state(tsk, TASK_UNINTERRUPTIBLE); |
606 | set_tsk_need_resched(tsk); | 606 | set_tsk_need_resched(tsk); |
607 | } | 607 | } |
608 | } | 608 | } |