From patchwork Mon Dec 30 10:19:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3418511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7ADD0C02DC for ; Mon, 30 Dec 2013 10:20:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF1DB20107 for ; Mon, 30 Dec 2013 10:20:17 +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 BE3512012B for ; Mon, 30 Dec 2013 10:20:12 +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 1VxZxB-0002SN-CK; Mon, 30 Dec 2013 10:20:09 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VxZx8-0003VD-My; Mon, 30 Dec 2013 10:20:06 +0000 Received: from mail-wg0-f44.google.com ([74.125.82.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VxZx6-0003U6-HH for linux-arm-kernel@lists.infradead.org; Mon, 30 Dec 2013 10:20:05 +0000 Received: by mail-wg0-f44.google.com with SMTP id a1so9834264wgh.23 for ; Mon, 30 Dec 2013 02:19:42 -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=py6s4kWyT8yY6JQ79rUA6x+MfJax+3o3VD6zA9vHKuc=; b=UAoDCamiGCTU6QQaFyZ0O9IilSuGVLyspt8o8X4Gq9CDjMoa7JTil7zk/VqzLOnjmC oxgOl2oMnpfCJeISvskCzFDCbrO39sLKVr8+7933+2k+O18Mx8HwLeUHG1PI8S5BMP4a 8MgAmAJR9igmgA2XLkzvpWqjr8XnhByZVMYjLuaXsD/y3Ztl1x8oAF5jG644kETVLOQZ 7Jhw62Vh+wvInvoWSExenGjdaCRpMBHPg6nHHN+tkB2A0cKLUTWxCo8f1IdNpcDmLT9b /Ud3LcjfujJquo/0B+g765QJC2/BGgD3HG+3aC3coaAb2JhC4XrM/XDIxG8U0D54ZRJE FKHg== X-Gm-Message-State: ALoCoQmIbSImfhKznGSM6fck2edc71beSWJL6W83r1mYHY4LtXjRj5C/zL/ijayRQYsC/zzDf9I/ X-Received: by 10.180.89.193 with SMTP id bq1mr43579371wib.22.1388398782607; Mon, 30 Dec 2013 02:19:42 -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.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 02:19:41 -0800 (PST) From: Daniel Lezcano To: mingo@kernel.org, tglx@linutronix.de Subject: [PATCH 01/20] clockevent: sun4i: Fill the irq field in the clockevent structure Date: Mon, 30 Dec 2013 11:19:20 +0100 Message-Id: <1388398779-11222-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <52C1479E.80808@linaro.org> References: <52C1479E.80808@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131230_052004_688642_C3ABDD03 X-CRM114-Status: GOOD ( 11.55 ) 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 clock event structure irq field was not filled previously to the interrupt we're using. This was resulting in the timer not being used at all when using a configuration with SMP enabled on a system with several CPUs, and with the cpumask set to the cpu_possible_mask. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano Reviewed-by: Stephen Boyd --- drivers/clocksource/sun4i_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c index 2fb4695..a7f492e 100644 --- a/drivers/clocksource/sun4i_timer.c +++ b/drivers/clocksource/sun4i_timer.c @@ -188,6 +188,7 @@ static void __init sun4i_timer_init(struct device_node *node) writel(val | TIMER_IRQ_EN(0), timer_base + TIMER_IRQ_EN_REG); sun4i_clockevent.cpumask = cpumask_of(0); + sun4i_clockevent.irq = irq; clockevents_config_and_register(&sun4i_clockevent, rate, TIMER_SYNC_TICKS, 0xffffffff);