Message ID | 1515070228-10481-6-git-send-email-daniel.lezcano@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp11391102qgn; Thu, 4 Jan 2018 04:53:02 -0800 (PST) X-Google-Smtp-Source: ACJfBosfbCdgzWyDIPYG7ZndGFebrpV9AAYpS3EYi3EbSs/UepvLK2gb2obrQ8j0bSiyRugJuPns X-Received: by 10.98.133.155 with SMTP id m27mr4671902pfk.69.1515070382578; Thu, 04 Jan 2018 04:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515070382; cv=none; d=google.com; s=arc-20160816; b=J3aa446SZsqJdkM9J3Zng74uLd8MvvEQCsCnawvGleChvfqdipVm6A/C+d4J/uGC8H ZO3p0XMMKGNUvprVJ34/zC6BvvsmZ6NqdSB/64KA8Id0rsUJLglvsGJJxdeo8LLqjxLX JuRBQilUK0UacZKAzk3++Xm3OKdXdamqdVl9Zs3UrV9rSCKvx2usyunsgMxBrhBvIpDm 8eRJuF1R/PtQ+afuzqRLTgWtukRRJ43JhnQb2/QB8U90R3TzWvRWqFTucUmCRPaBimw1 khDK1NE8mPs0rsrOSXU8ohpzS+HwJgbXzNdUKLlYVxya39V4e9w2yE8yGSMzhfD1P1F+ xmGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=vbjV4u+k0hFu1msvk9qaIYmYriutJ/nDft76EE9W54g=; b=cYOX9+mLIuoJUwI7MfBDJlmUusRYWiq9KracWpRi+3khfv+GE+fDBZf/dAxFcTc1pT G+QLpErPTfWw81JQEtmpdKfjkVS7ohqcLkhfpywrTMWRNMDsUk7tPBx/6bZcuPnVolCP UvoOJKe95wCrDfyXSNK/1C+m+p1UoEHmWinfaYD0sK2Z0sGD0Nc/KTiDvKJaBMk2Zz5C 6YcxZx0cPC8rOto7orlPcUeL3Q/GqAlA6fOyZfo9kNR6qUJTm4VSlKvjjPzatjBJcjoY ovYCmrv3mg5cdpNfEmO15X40RO66tvwHlB+oQHJeJFU0z9eIWb4YoVN1utMiC4mw+WSw Z93A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZT5KrbDK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si1999070pgr.829.2018.01.04.04.53.02; Thu, 04 Jan 2018 04:53:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZT5KrbDK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753161AbeADMxA (ORCPT <rfc822; tom.gall@linaro.org> + 27 others); Thu, 4 Jan 2018 07:53:00 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37625 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbeADMvX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 4 Jan 2018 07:51:23 -0500 Received: by mail-wm0-f66.google.com with SMTP id f140so3229343wmd.2 for <linux-kernel@vger.kernel.org>; Thu, 04 Jan 2018 04:51:22 -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=aZx313896Fxi6gACywQdAAkJ4G51QlDaOzYI7Qf8FiPLQJCAC4sKjdgovuV5lPZEmL I9yljIWo04dAAtzusHa0suM6wRrtpt/Ri5RZ1IcS/eooxuk+NszYg1cYrfVfKX0gl3yT h3vkpKG9ydj2Qi2gEqBH5lqo12MM25JH/QU1hUR2DSOmixypcfc8QwoS0f9wDnvKn9A7 MQHBzOU0sV7IvXYRMMIZz1DE5mat418qaBkOeBr+vf51wcIwvH7/TIiHKp50qHLXidIL 1xQ7Bk5E2lhJezOtWsNyyAQstWkelQjNgfDo7GbmnbOQ0hRuRkCc2h8SauD5eSxMMm7f 3p1g== X-Gm-Message-State: AKGB3mI6lzGXnyC6qA4uErkhWgIFI0ccUcdpTGk5bgwXYdivov+0wl/b 3NPDyfHF0pQi1tWWMhRDS9Dgxw== 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 Cc: linux-kernel@vger.kernel.org, benjamin.gaignard@linaro.org, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@st.com>, linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
clocksource/drivers/stm32: Consolidate the timer
|
expand
|
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(-) -- 2.7.4