mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Richter <robert.richter@amd.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: LKML <linux-kernel@vger.kernel.org>,
	oprofile-list <oprofile-list@lists.sourceforge.net>,
	Robert Richter <robert.richter@amd.com>
Subject: [PATCH 7/7] oprofile/x86: remove duplicate IBS capability check
Date: Tue, 4 May 2010 12:44:53 +0200	[thread overview]
Message-ID: <1272969893-29233-8-git-send-email-robert.richter@amd.com> (raw)
In-Reply-To: <1272969893-29233-1-git-send-email-robert.richter@amd.com>

The check is already done in ibs_exit().

Signed-off-by: Robert Richter <robert.richter@amd.com>
---
 arch/x86/oprofile/op_model_amd.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index e159254..384c524 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -490,8 +490,7 @@ static int init_ibs_nmi(void)
 /* uninitialize the APIC for the IBS interrupts if needed */
 static void clear_ibs_nmi(void)
 {
-	if (ibs_caps)
-		on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1);
+	on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1);
 }
 
 /* initialize the APIC for the IBS interrupts if available */
-- 
1.7.0.3



  parent reply	other threads:[~2010-05-04 10:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04 10:44 [PATCH 0/7] updates for oprofile Robert Richter
2010-05-04 10:44 ` [PATCH 1/7] oprofile: update file list in MAINTAINERS file Robert Richter
2010-05-04 10:44 ` [PATCH 2/7] oprofile/x86: rework error handler in nmi_setup() Robert Richter
2010-05-04 10:44 ` [PATCH 3/7] oprofile/x86: reserve counter msrs pairwise Robert Richter
2010-05-04 10:44 ` [PATCH 4/7] oprofile/x86: moving shutdown functions Robert Richter
2010-05-04 10:44 ` [PATCH 5/7] oprofile/x86: return -EBUSY if counters are already reserved Robert Richter
2010-05-04 10:44 ` [PATCH 6/7] oprofile/x86: move IBS code Robert Richter
2010-05-04 10:44 ` Robert Richter [this message]
2010-05-06 13:03 ` [GIT PULL] updates for oprofile Robert Richter
2010-05-06 14:21   ` Ingo Molnar

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=1272969893-29233-8-git-send-email-robert.richter@amd.com \
    --to=robert.richter@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=oprofile-list@lists.sourceforge.net \
    /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

Powered by JetHome