From patchwork Mon Dec 30 10:19:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3418571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8AB3A9F295 for ; Mon, 30 Dec 2013 10:20:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E780B200FE for ; Mon, 30 Dec 2013 10:20:54 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DCF0A20107 for ; Mon, 30 Dec 2013 10:20:53 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VxZxe-0002k3-Gm; Mon, 30 Dec 2013 10:20:38 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VxZxT-0003Zh-91; Mon, 30 Dec 2013 10:20:27 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VxZx7-0003U7-Ug for linux-arm-kernel@lists.infradead.org; Mon, 30 Dec 2013 10:20:07 +0000 Received: by mail-wi0-f173.google.com with SMTP id hn9so11502311wib.0 for ; Mon, 30 Dec 2013 02:19:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L+0x52xY269mC9xdP+Cw6zW8eN6dIaqw0URHxCZY6QU=; b=KUYXdbrWE4iVZiSFG1XcD932BevQQCupEB6Pgv5Xx8fWCqbcgRkdf9U/QSGyixFPsq /uwDoBu5K7I+5QoD+gWVhn2aOEVgAP2JlH1pJXpdsJnai/h9AyButhEJGl9UfXTAIZx1 5V/RuQgM4NCw6957u2y/8hJWLqjrzySYiXI0c0bcFIEYA0ifxJaV7OcZ20Xw0La2gJax Qw9X+ky171TrnpPkVGcEngEUPmJ8UXwizvulnmChOhzq/3FCGjJSIypfFjWCmAPLjh0m J5IcVTVkpfmC88eHMBVFl6dlJY9DGP9qMtwq059LoBO3i82LHy3WaxYDHG5hfLai9VLD YKfA== X-Gm-Message-State: ALoCoQnxmgzNDwE7BNgyr68JAil2sxDDPAXS59BmK805QDi8SA0uRzaYZ8D6PyJ6KSBpZdudDBCW X-Received: by 10.194.6.161 with SMTP id c1mr1829230wja.89.1388398784344; Mon, 30 Dec 2013 02:19:44 -0800 (PST) Received: from localhost.localdomain (pur13-1-78-242-214-186.fbx.proxad.net. [78.242.214.186]) by mx.google.com with ESMTPSA id xl18sm69167429wib.9.2013.12.30.02.19.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 02:19:43 -0800 (PST) From: Daniel Lezcano To: mingo@kernel.org, tglx@linutronix.de Subject: [PATCH 02/20] clocksource: sun4i: Change CPU mask to cpu_possible_mask Date: Mon, 30 Dec 2013 11:19:21 +0100 Message-Id: <1388398779-11222-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1388398779-11222-1-git-send-email-daniel.lezcano@linaro.org> References: <52C1479E.80808@linaro.org> <1388398779-11222-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131230_052006_140105_6AF99E39 X-CRM114-Status: GOOD ( 11.37 ) X-Spam-Score: -2.6 (--) Cc: laurent.pinchart+renesas@ideasonboard.com, axel.lin@ingics.com, michael.opdenacker@free-electrons.com, linus.walleij@linaro.org, jg1.han@samsung.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, ezequiel.garcia@free-electrons.com, maxime.ripard@free-electrons.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Maxime Ripard The interrupt for the timer is a shared processor interrupt, so any CPU found in the system can handle it. Switch to our cpumask to cpu_possible_mask instead of cpumask_of(0). Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano Reviewed-by: Stephen Boyd --- drivers/clocksource/sun4i_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c index a7f492e..6a76b4e 100644 --- a/drivers/clocksource/sun4i_timer.c +++ b/drivers/clocksource/sun4i_timer.c @@ -187,7 +187,7 @@ static void __init sun4i_timer_init(struct device_node *node) val = readl(timer_base + TIMER_IRQ_EN_REG); writel(val | TIMER_IRQ_EN(0), timer_base + TIMER_IRQ_EN_REG); - sun4i_clockevent.cpumask = cpumask_of(0); + sun4i_clockevent.cpumask = cpu_possible_mask; sun4i_clockevent.irq = irq; clockevents_config_and_register(&sun4i_clockevent, rate,