x86, mm: fault.c, simplify kmmio_fault()
authorIngo Molnar <mingo@elte.hu>
Fri, 20 Feb 2009 21:32:10 +0000 (22:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 20 Feb 2009 23:09:42 +0000 (00:09 +0100)
commitb814d41f0987c7648d7ed07471258101c95c026b
tree860a824d96dbb128d5038a93103370afbdf00b08
parent121d5d0a7e5808fbcfda484efd7ba840ac93450f
x86, mm: fault.c, simplify kmmio_fault()

Impact: cleanup

Remove an #ifdef from kmmio_fault() - we can do this by
providing default implementations for is_kmmio_active()
and kmmio_handler(). The compiler optimizes it all away
in the !CONFIG_MMIOTRACE case.

Also, while at it, clean up mmiotrace.h a bit:

 - standard header guards
 - standard vertical spaces for structure definitions

No code changed (both with mmiotrace on and off in the config):

   text    data     bss     dec     hex filename
   2947      12      12    2971     b9b fault.o.before
   2947      12      12    2971     b9b fault.o.after

Cc: Pekka Paalanen <pq@iki.fi>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c
include/linux/mmiotrace.h