| To: | "Ralf Baechle" <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH 1/3] signal: avoid useless test in do_signal() |
| From: | "Franck Bui-Huu" <vagabon.xyz@gmail.com> |
| Date: | Fri, 9 Feb 2007 17:50:36 +0100 |
| Cc: | linux-mips@linux-mips.org, anemo@mba.ocn.ne.jp, "Franck Bui-Huu" <fbuihuu@gmail.com> |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UivTl0Rm2pXaNnmlj9W1NimNSAv/dnzWQhIkITRoqjKY/V0rHfVQLmMR5VXeAenB1DyVp8bzrSVz2y/HmwI0aMdC85mzj0FTc3pnwvE46SBUBsONh5KpYGUFfhujKxvU8mv+QyGQ0X2Wjv00cq2EL+fyKHMuWV9dw4kksUl0Tl4= |
| In-reply-to: | <20070209162118.GA26617@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1171033658561-git-send-email-fbuihuu@gmail.com> <11710336594091-git-send-email-fbuihuu@gmail.com> <20070209162118.GA26617@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
On 2/9/07, Ralf Baechle <ralf@linux-mips.org> wrote: Ralf Baechle wrote: On Fri, Feb 09, 2007 at 04:07:36PM +0100, Franck Bui-Huu wrote:- if (test_thread_flag(TIF_RESTORE_SIGMASK)) - clear_thread_flag(TIF_RESTORE_SIGMASK);This is a microoptimization. The assumption here is TIF_RESTORE_SIGMASK will rarely need to be cleared and atomic operations are somewhat expensive if as in this case we have to assume the cacheline isn't held exclusive yet.
I missed that. You can forget this patch or maybe something like this
is more appropriate ?
if (unlikely(test_thread_flag(TIF_RESTORE_SIGMASK)))
clear_thread_flag(TIF_RESTORE_SIGMASK);
--
Franck
|
| Previous by Date: | Re: [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel, Franck Bui-Huu |
|---|---|
| Next by Date: | Re: [PATCH] serial driver PMC MSP71xx, kernel linux-mips.git mast er, Marc St-Jean |
| Previous by Thread: | Re: [PATCH 1/3] signal: avoid useless test in do_signal(), Ralf Baechle |
| Next by Thread: | [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel, Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |