[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-ef64789413c73f32faa5e5f1bc393e5843b0aa51@git.kernel.org>
Date: Wed, 27 Apr 2011 15:23:35 GMT
From: tip-bot for Jason Baron <jbaron@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
mathieu.desnoyers@...icios.com, a.p.zijlstra@...llo.nl,
rostedt@...dmis.org, tglx@...utronix.de, jbaron@...hat.com
Subject: [tip:perf/core] jump label: Add _ASM_ALIGN for x86 and x86_64
Commit-ID: ef64789413c73f32faa5e5f1bc393e5843b0aa51
Gitweb: http://git.kernel.org/tip/ef64789413c73f32faa5e5f1bc393e5843b0aa51
Author: Jason Baron <jbaron@...hat.com>
AuthorDate: Wed, 16 Mar 2011 15:58:27 -0400
Committer: Steven Rostedt <rostedt@...dmis.org>
CommitDate: Mon, 4 Apr 2011 13:42:51 -0400
jump label: Add _ASM_ALIGN for x86 and x86_64
The linker should not be adding holes to word size aligned pointers, but
out of paranoia we are explicitly specifying that alignment. I have not
seen any holes in the jump label section in practice.
Signed-off-by: Jason Baron <jbaron@...hat.com>
LKML-Reference: <e119fbd060c9452c56063ea6148ba1070e7434cc.1300299760.git.jbaron@...hat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
---
arch/x86/include/asm/jump_label.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/jump_label.h b/arch/x86/include/asm/jump_label.h
index f217cee..a32b18c 100644
--- a/arch/x86/include/asm/jump_label.h
+++ b/arch/x86/include/asm/jump_label.h
@@ -16,6 +16,7 @@ static __always_inline bool arch_static_branch(struct jump_label_key *key)
asm goto("1:"
JUMP_LABEL_INITIAL_NOP
".pushsection __jump_table, \"aw\" \n\t"
+ _ASM_ALIGN "\n\t"
_ASM_PTR "1b, %l[l_yes], %c0 \n\t"
".popsection \n\t"
: : "i" (key) : : l_yes);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists