From: "Albert Cahalan" <acahalan@gmail.com>
To: linux-kernel@vger.kernel.org, emmanuel.fleury@labri.fr,
torvalds@osdl.org, s0348365@sms.ed.ac.uk,
jengelh@linux01.gwdg.de, 76306.1226@compuserve.com,
akpm@osdl.org
Subject: Re: [patch] i386: use C code for current_thread_info()
Date: Tue, 13 Jun 2006 01:26:29 -0400 [thread overview]
Message-ID: <787b0d920606122226h1febfb45pd8ec1a6b7a8a59ed@mail.gmail.com> (raw)
Chuck Ebbert writes:
> Using C code for current_thread_info() lets the compiler optimize it.
> With gcc 4.0.2, kernel is smaller:
The often-forgotten __attribute__((const)) might do the job.
The function is indeed const as far as gcc can see, except
perhaps near the schedular code that switches stacks.
This applies to many similar functions, like the ones used
to get current. It should work for the C code too.
next reply other threads:[~2006-06-13 5:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 5:26 Albert Cahalan [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-06-13 1:50 Chuck Ebbert
2006-06-13 6:43 ` Andreas Mohr
2006-06-13 9:27 ` Avi Kivity
2006-06-12 17:14 Chuck Ebbert
2006-06-12 17:55 ` Adrian Bunk
2006-06-12 18:48 ` Andreas Mohr
2006-06-11 20:43 Chuck Ebbert
2006-06-11 21:05 ` Emmanuel Fleury
2006-06-11 19:07 Chuck Ebbert
2006-06-11 19:33 ` Linus Torvalds
2006-06-11 19:42 ` Jan Engelhardt
2006-06-11 20:33 ` Jan Engelhardt
2006-06-11 20:44 ` Alistair John Strachan
2006-06-12 8:10 ` Andi Kleen
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=787b0d920606122226h1febfb45pd8ec1a6b7a8a59ed@mail.gmail.com \
--to=acahalan@gmail.com \
--cc=76306.1226@compuserve.com \
--cc=akpm@osdl.org \
--cc=emmanuel.fleury@labri.fr \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=s0348365@sms.ed.ac.uk \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®