mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/mmiotrace: remove redundant instruction prefix checks
@ 2010-05-17 23:48 Akinobu Mita
  2010-05-22  7:58 ` Pekka Paalanen
  2010-05-23  9:25 ` [tip:perf/core] x86/mmiotrace: Remove " tip-bot for Akinobu Mita
  0 siblings, 2 replies; 3+ messages in thread
From: Akinobu Mita @ 2010-05-17 23:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Akinobu Mita, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86

Get rid of the duplicated entries in prefix_codes[] to eliminate
redundant checks by skip_prefix().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
---
 arch/x86/mm/pf_in.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/mm/pf_in.c b/arch/x86/mm/pf_in.c
index df3d5c8..308e325 100644
--- a/arch/x86/mm/pf_in.c
+++ b/arch/x86/mm/pf_in.c
@@ -34,7 +34,7 @@
 /* IA32 Manual 3, 2-1 */
 static unsigned char prefix_codes[] = {
 	0xF0, 0xF2, 0xF3, 0x2E, 0x36, 0x3E, 0x26, 0x64,
-	0x65, 0x2E, 0x3E, 0x66, 0x67
+	0x65, 0x66, 0x67
 };
 /* IA32 Manual 3, 3-432*/
 static unsigned int reg_rop[] = {
-- 
1.6.0.6


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/mmiotrace: remove redundant instruction prefix checks
  2010-05-17 23:48 [PATCH] x86/mmiotrace: remove redundant instruction prefix checks Akinobu Mita
@ 2010-05-22  7:58 ` Pekka Paalanen
  2010-05-23  9:25 ` [tip:perf/core] x86/mmiotrace: Remove " tip-bot for Akinobu Mita
  1 sibling, 0 replies; 3+ messages in thread
From: Pekka Paalanen @ 2010-05-22  7:58 UTC (permalink / raw)
  To: Akinobu Mita
  Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86

On Tue, 18 May 2010 08:48:30 +0900
Akinobu Mita <akinobu.mita@gmail.com> wrote:

> Get rid of the duplicated entries in prefix_codes[] to eliminate
> redundant checks by skip_prefix().
> 
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
> Cc: x86@kernel.org

Acked-by: Pekka Paalanen <pq@iki.fi>

> ---
>  arch/x86/mm/pf_in.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/x86/mm/pf_in.c b/arch/x86/mm/pf_in.c
> index df3d5c8..308e325 100644
> --- a/arch/x86/mm/pf_in.c
> +++ b/arch/x86/mm/pf_in.c
> @@ -34,7 +34,7 @@
>  /* IA32 Manual 3, 2-1 */
>  static unsigned char prefix_codes[] = {
>  	0xF0, 0xF2, 0xF3, 0x2E, 0x36, 0x3E, 0x26, 0x64,
> -	0x65, 0x2E, 0x3E, 0x66, 0x67
> +	0x65, 0x66, 0x67
>  };
>  /* IA32 Manual 3, 3-432*/
>  static unsigned int reg_rop[] = {
> -- 
> 1.6.0.6
> 
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to
> majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html Please read the FAQ
> at  http://www.tux.org/lkml/
> 


-- 
Pekka Paalanen
http://www.iki.fi/pq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:perf/core] x86/mmiotrace: Remove redundant instruction prefix checks
  2010-05-17 23:48 [PATCH] x86/mmiotrace: remove redundant instruction prefix checks Akinobu Mita
  2010-05-22  7:58 ` Pekka Paalanen
@ 2010-05-23  9:25 ` tip-bot for Akinobu Mita
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Akinobu Mita @ 2010-05-23  9:25 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, pq, akinobu.mita, tglx, mingo

Commit-ID:  841bca1393d315d79077f272c2918423e36dc364
Gitweb:     http://git.kernel.org/tip/841bca1393d315d79077f272c2918423e36dc364
Author:     Akinobu Mita <akinobu.mita@gmail.com>
AuthorDate: Tue, 18 May 2010 08:48:30 +0900
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Sun, 23 May 2010 11:02:43 +0200

x86/mmiotrace: Remove redundant instruction prefix checks

Get rid of the duplicated entries in prefix_codes[]
to eliminate redundant checks by skip_prefix().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Pekka Paalanen <pq@iki.fi>
LKML-Reference: <1274140110-5841-1-git-send-email-akinobu.mita@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/mm/pf_in.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/mm/pf_in.c b/arch/x86/mm/pf_in.c
index df3d5c8..308e325 100644
--- a/arch/x86/mm/pf_in.c
+++ b/arch/x86/mm/pf_in.c
@@ -34,7 +34,7 @@
 /* IA32 Manual 3, 2-1 */
 static unsigned char prefix_codes[] = {
 	0xF0, 0xF2, 0xF3, 0x2E, 0x36, 0x3E, 0x26, 0x64,
-	0x65, 0x2E, 0x3E, 0x66, 0x67
+	0x65, 0x66, 0x67
 };
 /* IA32 Manual 3, 3-432*/
 static unsigned int reg_rop[] = {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-23  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17 23:48 [PATCH] x86/mmiotrace: remove redundant instruction prefix checks Akinobu Mita
2010-05-22  7:58 ` Pekka Paalanen
2010-05-23  9:25 ` [tip:perf/core] x86/mmiotrace: Remove " tip-bot for Akinobu Mita

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®