From patchwork Fri May 23 10:42:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 30743 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F5AB2066E for ; Fri, 23 May 2014 10:43:20 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id c1sf1686360igq.10 for ; Fri, 23 May 2014 03:43:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=iWNZY4ezc2oG4kowIG4BiclWdRamrwwLhEgr3m9zxH8=; b=hGsc+gmeu3IyFFj5oakbuaujVtFM4Qcxt8ZFY1cjETPoTnyIn8hl5OuGjLtxXvHllo bpqZ6D7i1l7dKqaUEZ/4cJMHh/uFwDYbBm2wVLWwnZZxQFP4kXHvNBTFxor8VK32V3eg 8FiZxk3QG62IsdFan3ch1D+F3+JmW5det1AxCl6dI2NwXmwFzLFknB+TrbhHd4omUKZT UJ9QCzaSqMnfvSM7rC8z7bUnCjjkp4JDdAdka4xi5iUTLm5AzsKnv0S09A8WyiH3OPRi bBYJeN3Q97EJ7ZCJQPqbS23yMP4JbhCSjr3v/Wr0gXLAfsdUDHme7wVo0C/25ApojnIK l1vA== X-Gm-Message-State: ALoCoQn2j2WJkXEm/uNAanKuZ8j9buHng/Hmcd23BFEw0GR1CSWNMRqmAyjuQoo2rzv4HcamV21n X-Received: by 10.182.24.5 with SMTP id q5mr1772754obf.23.1400841799649; Fri, 23 May 2014 03:43:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.232 with SMTP id i95ls1716433qge.7.gmail; Fri, 23 May 2014 03:43:19 -0700 (PDT) X-Received: by 10.52.255.98 with SMTP id ap2mr2863697vdd.3.1400841799537; Fri, 23 May 2014 03:43:19 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id n9si1381171vcl.94.2014.05.23.03.43.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so2615539vcb.21 for ; Fri, 23 May 2014 03:43:19 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr3443485vcx.1.1400841799458; Fri, 23 May 2014 03:43:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp20455vcb; Fri, 23 May 2014 03:43:19 -0700 (PDT) X-Received: by 10.68.129.132 with SMTP id nw4mr4903196pbb.46.1400841798720; Fri, 23 May 2014 03:43:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fy1si3310500pbb.65.2014.05.23.03.43.18; Fri, 23 May 2014 03:43:18 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753579AbaEWKmw (ORCPT + 27 others); Fri, 23 May 2014 06:42:52 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:34741 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbaEWKmr (ORCPT ); Fri, 23 May 2014 06:42:47 -0400 Received: by mail-we0-f171.google.com with SMTP id w62so4632307wes.2 for ; Fri, 23 May 2014 03:42:46 -0700 (PDT) X-Received: by 10.194.104.129 with SMTP id ge1mr815063wjb.94.1400841766615; Fri, 23 May 2014 03:42:46 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-404-187.w82-125.abo.wanadoo.fr. [82.125.3.187]) by mx.google.com with ESMTPSA id dk10sm3882063wib.1.2014.05.23.03.42.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:42:45 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] clocksource: marco: Fix the affinity set for local timer of CPU1 Date: Fri, 23 May 2014 12:42:59 +0200 Message-Id: <1400841780-7119-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <537F2589.5050807@linaro.org> References: <537F2589.5050807@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Zhiwu Song irqchip will reject the affinity set to CPUs which is not online yet. but in the CPU1 wakeup stage, OS only sets CPU1 to be online after local timer is set, so that causes the irq_set_affinity not work. this patch moves to irq_force_affinity() for the low level boot stage. Signed-off-by: Zhiwu Song Signed-off-by: Barry Song Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-marco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-marco.c b/drivers/clocksource/timer-marco.c index b52e1c0..7f5374d 100644 --- a/drivers/clocksource/timer-marco.c +++ b/drivers/clocksource/timer-marco.c @@ -199,7 +199,7 @@ static int sirfsoc_local_timer_setup(struct clock_event_device *ce) action->dev_id = ce; BUG_ON(setup_irq(ce->irq, action)); - irq_set_affinity(action->irq, cpumask_of(cpu)); + irq_force_affinity(action->irq, cpumask_of(cpu)); clockevents_register_device(ce); return 0;