From: Kyle McMartin <kyle@mcmartin.ca>
To: David Howells <dhowells@redhat.com>
Cc: oleg@redhat.com, linux-arch@vger.kernel.org
Subject: Re: [PATCH 1/3] Reduce get_current() to the asm-generic implementation where possible
Date: Tue, 18 May 2010 13:39:27 -0400 [thread overview]
Message-ID: <20100518173927.GL6764@bombadil.infradead.org> (raw)
In-Reply-To: <20100518164537.6194.73366.stgit@warthog.procyon.org.uk>
On Tue, May 18, 2010 at 05:45:37PM +0100, David Howells wrote:
> Reduce get_current() to the asm-generic implementation where possible to remove
> duplicate cases.
>
> Note that this will lose the const attribute on get_current() for ARM and
> MN10300. This will be added back in a later patch for all architectures.
>
Acked-by: Kyle McMartin <kyle@mcmartin.ca>
> diff --git a/arch/parisc/include/asm/current.h b/arch/parisc/include/asm/current.h
> index 0fb9338..4c51401 100644
> --- a/arch/parisc/include/asm/current.h
> +++ b/arch/parisc/include/asm/current.h
> @@ -1,15 +1 @@
> -#ifndef _PARISC_CURRENT_H
> -#define _PARISC_CURRENT_H
> -
> -#include <linux/thread_info.h>
> -
> -struct task_struct;
> -
> -static inline struct task_struct * get_current(void)
> -{
> - return current_thread_info()->task;
> -}
> -
> -#define current get_current()
> -
> -#endif /* !(_PARISC_CURRENT_H) */
> +#include <asm-generic/current.h>
next prev parent reply other threads:[~2010-05-18 17:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 16:45 [PATCH 1/3] Reduce get_current() to the asm-generic implementation where possible David Howells
2010-05-18 16:45 ` [PATCH 2/3] Mark the 'current' pointer register read-only when such a thing exists David Howells
2010-05-18 21:05 ` David Miller
2010-05-18 16:45 ` [PATCH 3/3] Make get_current() __attribute__((const)) David Howells
2010-05-18 21:22 ` schedule() && prev/current (Was: [PATCH 3/3] Make get_current() __attribute__((const))) Oleg Nesterov
2010-05-19 6:21 ` Peter Zijlstra
2010-05-19 10:27 ` Oleg Nesterov
2010-05-19 10:37 ` Peter Zijlstra
2010-05-19 12:57 ` [PATCH] schedule: simplify the reacquire_kernel_lock() logic Oleg Nesterov
2010-05-19 12:57 ` Oleg Nesterov
2010-05-19 13:11 ` Yong Zhang
2010-05-19 13:07 ` schedule() && prev/current (Was: [PATCH 3/3] Make get_current() __attribute__((const))) Yong Zhang
2010-05-19 13:07 ` Yong Zhang
2010-05-18 17:39 ` Kyle McMartin [this message]
2010-05-18 19:47 ` [PATCH 1/3] Reduce get_current() to the asm-generic implementation where possible Jamie Lokier
2010-05-19 6:21 ` Nick Piggin
2010-05-19 11:02 ` Oleg Nesterov
2010-05-21 10:13 ` David Howells
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=20100518173927.GL6764@bombadil.infradead.org \
--to=kyle@mcmartin.ca \
--cc=dhowells@redhat.com \
--cc=linux-arch@vger.kernel.org \
--cc=oleg@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).