Message ID | 1515070228-10481-6-git-send-email-daniel.lezcano@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D6D96034B for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 4 Jan 2018 12:52:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A66D28537 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 4 Jan 2018 12:52:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F0E228631; Thu, 4 Jan 2018 12:52:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD9F128537 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 4 Jan 2018 12:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=GzsQQj1Lz72OR9IAYGYj9sQOvEu50d4cAvF+AMYXU6Q=; b=KJAXSmwB70g6dzF7WtTTQyKdVy 0bNbpfgVWvB4h11DfhdPrvxQ8iiltRrJX9xoxcgSmcu1VTTckCpU3bjNL4CPwJ7LxwuO+paExI/vs cmCpGM+xNEwSGDTibkGtX7WBdv1+ul/kqfObV7RAkI5dh+M1x7Pi9JKa1rhHHEMH5BzxIsAuck3Au 6YVpLvnmaoruSG7uPCkLu2lc4qoQE51kLAdzbbeIRFrF5jNrZDmJPtPHuCKsQ5fouKsBSojip0MvS 6UDhM6HeWRJWfjVwlnR3+sd7gAIQKhHonjt28aJzB7cp/GM7RFoRQmXD7FM7TmL7izT59BsSaItgS MoBrT6nQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eX50c-0006Xf-Hq; Thu, 04 Jan 2018 12:52:34 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eX4ze-0005sR-3W for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2018 12:51:40 +0000 Received: by mail-wm0-x243.google.com with SMTP id b76so3278242wmg.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 04 Jan 2018 04:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vbjV4u+k0hFu1msvk9qaIYmYriutJ/nDft76EE9W54g=; b=ZT5KrbDKl2l/3VO/wKwaBrTxCHqhtzWd7/jIS4zPXNyZW5C5coFGzDR4sb82Z7FuAR aL1ETSgPykEt8ea07eXe/TC9FVx1C0acY6x1v8SAiUzYaXcUP2XkHRnR0a+u8S04fX+N RXekLHzN30+8L8YSArbm6wrjCTzNHrAymOvXo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vbjV4u+k0hFu1msvk9qaIYmYriutJ/nDft76EE9W54g=; b=V2vm2dfZFqu7Nngge05uuaGc8vOIO2uZId58Xfmks69KKzrEWA4pmTT72eaMFHizqd 9a2oZOMfzJrWCVZofedYUltAS1sCX17uUOTy0Tr6JGB2HLswjD72Qfr38EchLSt1Mka5 HngP+tSaEYh9e+ugmEDgQuXITKiwMZuakkEzD5niKPZs8nKFzvKVAmcckwFKL2ispAOk jrI5g/BvQgoGT35g+DF/uLoTsRT+DOE60Nb5/cdBhFAikEid5/0bGGR1GqEdK5JgBISo cvR5hLAgISpm7EPynCOr9L/nxKmnecVVV1SnhNrevpUG/i+nxJXV3AWTvtUqGn11nxWY nJbA== X-Gm-Message-State: AKGB3mIlGRlaoVey9zdGGtCQJayJ7VGxFhonX5ds2+8AlJoxSgpDCcHV yP1pPclfQAF2lUddj0BVdDvjcA== X-Google-Smtp-Source: ACJfBovGE4dG9U5yv3K5G7wv6lIILKyjNwycBoEvSCfSUhwPssbRfPr8DIDskqwPZCphJwh/CM8l1w== X-Received: by 10.28.209.141 with SMTP id i135mr3690862wmg.153.1515070282120; Thu, 04 Jan 2018 04:51:22 -0800 (PST) Received: from mai.lan ([2001:41d0:fe90:b800:c10d:405d:d60:60bb]) by smtp.gmail.com with ESMTPSA id d71sm3668348wma.7.2018.01.04.04.51.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 04:51:21 -0800 (PST) From: Daniel Lezcano <daniel.lezcano@linaro.org> To: daniel.lezcano@linaro.org, tglx@linutronix.de Subject: [PATCH 05/12] clocksource/drivers/stm32: Use the node name as timer name Date: Thu, 4 Jan 2018 13:50:21 +0100 Message-Id: <1515070228-10481-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515070228-10481-1-git-send-email-daniel.lezcano@linaro.org> References: <1515070228-10481-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180104_045134_464657_A34BE57B X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: "moderated list:ARM/STM32 ARCHITECTURE" <linux-arm-kernel@lists.infradead.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, linux-kernel@vger.kernel.org, benjamin.gaignard@linaro.org, Alexandre Torgue <alexandre.torgue@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index 3e4ab07..14b7a2b 100644 --- a/drivers/clocksource/timer-stm32.c +++ b/drivers/clocksource/timer-stm32.c @@ -85,7 +85,7 @@ static void __init stm32_clockevent_init(struct timer_of *to) unsigned long max_delta; int prescaler; - to->clkevt.name = "stm32_clockevent"; + to->clkevt.name = to->np->full_name; to->clkevt.features = CLOCK_EVT_FEAT_PERIODIC; to->clkevt.set_state_shutdown = stm32_clock_event_shutdown; to->clkevt.set_state_periodic = stm32_clock_event_set_periodic;
As there are different timers on the stm32, use the node name for the timer name in order to give the indication of which timer the kernel is using. The /proc/timer_list gives all the information with the right name, otherwise we end up digging in the kernel log and /proc/interrupt to do the connection between the used timer. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- drivers/clocksource/timer-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)