x86: Move do_page_fault()'s error path under unlikely()
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Thu, 26 May 2011 08:12:12 +0000 (17:12 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 May 2011 11:54:03 +0000 (13:54 +0200)
commitb80ef10e84d85a06bcd0b3a24a752ec32d0e0e40
tree39a1d5b97203b99ab736f1b804a7782d6b3a05a5
parentde66ee979d0ea45171cc2501750e9f9f22f5a690
x86: Move do_page_fault()'s error path under unlikely()

Ingo suggested SIGKILL check should be moved into slowpath
function. This will reduce the page fault fastpath impact
of this recent commit:

  37b23e0525d3: x86,mm: make pagefault killable

Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: kamezawa.hiroyu@jp.fujitsu.com
Cc: minchan.kim@gmail.com
Cc: willy@linux.intel.com
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/4DDE0B5C.9050907@jp.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c