Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH -tip] [Cleanup] x86/x86-64: Remove unused thread_re..

 
   Soft32 Home -> Linux -> Kernel RSS
Next:  [PATCH 0/5] net: push down BKL into proto ops  
Author Message
Masami Hiramatsu

External


Since: Nov 08, 2008
Posts: 111



(Msg. 1) Posted: Thu Nov 05, 2009 1:20 pm
Post subject: [PATCH -tip] [Cleanup] x86/x86-64: Remove unused thread_return label from switch_to()
Archived from groups: linux>kernel (more info?)

Remove unused thread_return label from switch_to() macro on x86-64.
Since this symbol cuts into schedule(), backtrace at the latter
half of schedule() was always shown as thread_return().

Signed-off-by: Masami Hiramatsu <mhiramat RemoveThis @redhat.com>
Cc: Ingo Molnar <mingo RemoveThis @elte.hu>
---

arch/x86/include/asm/system.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h
index f08f973..1a953e2 100644
--- a/arch/x86/include/asm/system.h
+++ b/arch/x86/include/asm/system.h
@@ -128,8 +128,6 @@ do { \
"movq %%rsp,%P[threadrsp](%[prev])\n\t" /* save RSP */ \
"movq %P[threadrsp](%[next]),%%rsp\n\t" /* restore RSP */ \
"call __switch_to\n\t" \
- ".globl thread_return\n" \
- "thread_return:\n\t" \
"movq "__percpu_arg([current_task])",%%rsi\n\t" \
__switch_canary \
"movq %P[thread_info](%%rsi),%%r8\n\t" \


--
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat RemoveThis @redhat.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo RemoveThis @vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
tip-bot for Masami Hirama

External


Since: Nov 08, 2009
Posts: 1



(Msg. 2) Posted: Sun Nov 08, 2009 5:20 am
Post subject: [tip:x86/asm] x86: Remove unused thread_return label from switch_to() [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Commit-ID: c12a229bc5971534537a7d0e49e44f9f1f5d0336
Gitweb: http://git.kernel.org/tip/c12a229bc5971534537a7d0e49e44f9f1f5d0336
Author: Masami Hiramatsu <mhiramat DeleteThis @redhat.com>
AuthorDate: Thu, 5 Nov 2009 11:03:59 -0500
Committer: Ingo Molnar <mingo DeleteThis @elte.hu>
CommitDate: Sun, 8 Nov 2009 11:57:13 +0100

x86: Remove unused thread_return label from switch_to()

Remove unused thread_return label from switch_to() macro on
x86-64. Since this symbol cuts into schedule(), backtrace at the
latter half of schedule() was always shown as thread_return().

Signed-off-by: Masami Hiramatsu <mhiramat DeleteThis @redhat.com>
Cc: systemtap <systemtap DeleteThis @sources.redhat.com>
Cc: DLE <dle-develop DeleteThis @lists.sourceforge.net>
LKML-Reference: <20091105160359.5181.26225.stgit@harusame>
Signed-off-by: Ingo Molnar <mingo DeleteThis @elte.hu>
---
arch/x86/include/asm/system.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h
index f08f973..1a953e2 100644
--- a/arch/x86/include/asm/system.h
+++ b/arch/x86/include/asm/system.h
@@ -128,8 +128,6 @@ do { \
"movq %%rsp,%P[threadrsp](%[prev])\n\t" /* save RSP */ \
"movq %P[threadrsp](%[next]),%%rsp\n\t" /* restore RSP */ \
"call __switch_to\n\t" \
- ".globl thread_return\n" \
- "thread_return:\n\t" \
"movq "__percpu_arg([current_task])",%%rsi\n\t" \
__switch_canary \
"movq %P[thread_info](%%rsi),%%r8\n\t" \
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo DeleteThis @vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[PATCH 2.6.19-rc4-mm2] i2lib unused variable cleanup - Hello, This patch fixes this warning: CC drivers/char/ip2/ip2main.o In file included from..

[PATCH] Remove unused set_seg_base - The set_seg_base function isn't used anywhere (2.6.21-rc3-git1) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au...

[PATCH] remove unused TIF_NOTIFY_RESUME (take 2) - Hello, This following patch removes the TIF_NOTIFY_RESUME flag for thread_info. It is unused on all but the IA-64..

[2.6 patch] crypto/: remove unused functions - This patch removes the following no longer used functions: - api.c: crypto_alg_available() - digest.c:..

[2.6 patch] remove the unused PARIDE_PARPORT function - This patch removes the unused PARIDE_PARPORT function. Signed-off-by: Adrian Bunk <bunk@stusta.de> ---..

[PATCH 1/3] atiixp.c: remove unused code - A previous patch to atiixp.c was removed but some code has not been cleaned. Now we remove these code sine they are no....
       Soft32 Home -> Linux -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]