From: Ingo Molnar <mingo@elte.hu>
To: Pekka Paalanen <pq@iki.fi>
Cc: hpa@zytor.com, mingo@redhat.com, torvalds@linux-foundation.org,
tglx@linutronix.de, linux-kernel@vger.kernel.org
Subject: Re: [tip:x86/mm] x86, mm: fault.c, simplify kmmio_fault()
Date: Sun, 22 Feb 2009 10:26:08 +0100 [thread overview]
Message-ID: <20090222092608.GD6964@elte.hu> (raw)
In-Reply-To: <20090221013845.718d507a@daedalus.pq.iki.fi>
* Pekka Paalanen <pq@iki.fi> wrote:
> On Fri, 20 Feb 2009 22:40:09 GMT
> Ingo Molnar <mingo@elte.hu> wrote:
>
> > Author: Ingo Molnar <mingo@elte.hu>
> > AuthorDate: Fri, 20 Feb 2009 22:32:10 +0100
> > Commit: Ingo Molnar <mingo@elte.hu>
> > CommitDate: Sat, 21 Feb 2009 00:09:42 +0100
> >
> > 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>
> >
>
> Acked-by: Pekka Paalanen <pq@iki.fi>
> except for one minor detail below.
>
> >
> > ---
> > arch/x86/mm/fault.c | 5 ++-
> > include/linux/mmiotrace.h | 78 +++++++++++++++++++++++++++------------------
> > 2 files changed, 50 insertions(+), 33 deletions(-)
> >
> > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
> > index 3e36614..fe99af4 100644
> > --- a/arch/x86/mm/fault.c
> > +++ b/arch/x86/mm/fault.c
> > @@ -55,13 +55,14 @@ enum x86_pf_error_code {
> > PF_INSTR = 1 << 4,
> > };
> >
> > +/*
> > + * (returns 0 if mmiotrace is disabled)
>
> Returns 0 if the fault was not handled in mmiotrace.
ok, i've updated the comment. I did not mean the comment to be
an exclusive statement, but in hindsight it's indeed ambiguous.
Ingo
prev parent reply other threads:[~2009-02-22 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tip-b814d41f0987c7648d7ed07471258101c95c026b@kernel.org>
2009-02-20 23:38 ` [tip:x86/mm] x86, mm: fault.c, simplify kmmio_fault() Pekka Paalanen
2009-02-22 9:26 ` Ingo Molnar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090222092608.GD6964@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pq@iki.fi \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox