mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Feng Tang <feng.tang@intel.com>
To: linux-kernel@vger.kernel.org, tglx@linutronix.de
Cc: mingo@elte.com, hpa@zytor.com, alan@linux.intel.com,
	Feng Tang <feng.tang@intel.com>,
	Jacob Pan <jacob.jun.pan@intel.com>
Subject: [PATCH 2/2] x86, apbt: setup affinity for apb timers acting as per-cpu timer
Date: Fri,  3 Dec 2010 11:51:38 +0800	[thread overview]
Message-ID: <1291348298-21263-2-git-send-email-feng.tang@intel.com> (raw)
In-Reply-To: <1291348298-21263-1-git-send-email-feng.tang@intel.com>

Commit a5ef2e70 "x86: Sanitize apb timer interrupt handling" forgot
the affinity setup when cleaning up the code, this patch just
adds the forgotten part

Cc: Jacob Pan <jacob.jun.pan@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Feng Tang <feng.tang@intel.com>
---
 arch/x86/kernel/apb_timer.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c
index 92543c7..7c9ab59 100644
--- a/arch/x86/kernel/apb_timer.c
+++ b/arch/x86/kernel/apb_timer.c
@@ -315,6 +315,7 @@ static void apbt_setup_irq(struct apbt_dev *adev)
 
 	if (system_state == SYSTEM_BOOTING) {
 		irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT);
+		irq_set_affinity(adev->irq, cpumask_of(adev->cpu));
 		/* APB timer irqs are set up as mp_irqs, timer is edge type */
 		__set_irq_handler(adev->irq, handle_edge_irq, 0, "edge");
 		if (request_irq(adev->irq, apbt_interrupt_handler,
-- 
1.7.0.4


  reply	other threads:[~2010-12-03  3:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03  3:51 [PATCH 1/2] x86, earlyprintk: move mrst early console to platform/ and fix a typo Feng Tang
2010-12-03  3:51 ` Feng Tang [this message]
2010-12-06 15:01   ` [tip:x86/platform] x86, apbt: Setup affinity for apb timers acting as per-cpu timer tip-bot for Feng Tang
2010-12-06 15:02 ` [tip:x86/platform] x86, earlyprintk: Move mrst early console to platform/ and fix a typo tip-bot for Feng Tang
2010-12-06 19:54 ` tip-bot for Feng Tang

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=1291348298-21263-2-git-send-email-feng.tang@intel.com \
    --to=feng.tang@intel.com \
    --cc=alan@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=jacob.jun.pan@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.com \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®