From: Ingo Molnar <mingo@elte.hu>
To: "Daniel Glöckner" <dg@emlix.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
Suresh Siddha <suresh.b.siddha@intel.com>,
"Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>,
Arjan van de Ven <arjan@infradead.org>,
x86@kernel.org, Bill Metzenthen <billm@melbpc.org.au>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86, math-emu: fix init_fpu for task != current
Date: Wed, 4 Mar 2009 18:51:22 +0100 [thread overview]
Message-ID: <20090304175122.GA29823@elte.hu> (raw)
In-Reply-To: <E1LetWv-0002Kq-Sq@mailer.emlix.com>
* Daniel Glöckner <dg@emlix.com> wrote:
> On 03/02/2009 08:52 PM, Ingo Molnar wrote:
> > * Daniel Glöckner <dg@emlix.com> wrote:
> [..]
> >> This patch creates a new function finit_task that takes a task_struct
> >> parameter. finit becomes a wrapper that simply calls finit_task with
> >> current. On the plus side this avoids many calls to get_current which
> >> would each resolve to an inline assembler mov instruction.
> [..]
> >> --- a/arch/x86/kernel/i387.c
> >> +++ b/arch/x86/kernel/i387.c
> >> @@ -136,7 +136,7 @@ int init_fpu(struct task_struct *tsk)
> >> #ifdef CONFIG_X86_32
> >> if (!HAVE_HWFP) {
> >> memset(tsk->thread.xstate, 0, xstate_size);
> >> - finit();
> >> + finit_task(tsk);
> >> set_stopped_child_used_math(tsk);
> >> return 0;
> >> }
> [..]
> >
> > ok, the fix looks good - but we sure want to define this
> > function in the "# CONFIG_MATH_EMU is not set" case too, agreed?
>
> To avoid linker errors if the compiler emits the call although
> !HAVE_HWFP is always false? Sounds plausible. I also removed
> finit from i387.h as the only other external call site,
> reg_ld_str.c, gets its prototype from fpu_proto.h.
Could you please send a single combo patch with a full
changelog, etc.
Thanks,
Ingo
next prev parent reply other threads:[~2009-03-04 17:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 15:19 [PATCH] x86, math-emu: fix init_fpu for task != current Daniel Glöckner
2009-03-02 19:52 ` Ingo Molnar
2009-03-04 16:01 ` Daniel Glöckner
2009-03-04 17:51 ` Ingo Molnar [this message]
2009-03-04 18:42 ` [PATCH -v2] " Daniel Glöckner
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=20090304175122.GA29823@elte.hu \
--to=mingo@elte.hu \
--cc=arjan@infradead.org \
--cc=billm@melbpc.org.au \
--cc=dg@emlix.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=suresh.b.siddha@intel.com \
--cc=venkatesh.pallipadi@intel.com \
--cc=x86@kernel.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