Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp576954pxb; Thu, 26 Aug 2021 09:28:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1gZpUbAYFfjxyGaNeGTa+SNBIqbq2/S62w2eMwt+oBm6SVknduKV0gPLSexvZ0GMcRZRz X-Received: by 2002:a05:6402:5212:: with SMTP id s18mr5075431edd.160.1629995305023; Thu, 26 Aug 2021 09:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629995305; cv=none; d=google.com; s=arc-20160816; b=ZhRuvVi42oy0KbA8Omxckn8AtM6zezQCObjNCPd1v7WVo9qs53haAbJkaStGyMPcvf V5s4JtF1hqGHHNQOZCEgtd2asxGS+1rTsZHFIkIubuKEik5ib/W0eJK4Vi0KwcvxFUEU 8BPoHmD6Uffwp6sniFRqy4cYfV30Kb54cFYODwYA3spTDRCfc5g8EqlKz8aP7ndQH+CI 2oweSJPQRVyABqdYBVjWo6aZJxEuKUVyiovJTFk28IqJ5oxZGJZDR7/JslXIBtKaPvAD sxJEZuxOFSy3bgc6YFYZ+oJABzbwPuru8iklOZgcG3O/a3C2P53RvRJQKWcL83nl1YYZ gCZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=/z4eEHA/BvTTf9lcIYQIgsjWlsescoJO2hukCV5cUHE=; b=uDddlscM4w7OSAkl2XtfRIy2h+yKKgf0lz5YIrAgj9OTw2L7LDsnkO2X+3kUfh3sd5 9jDv2OSNdLtKB9CKi13WO2Qa/SAlniFmlo5V2WQU4L/zEeKGh4b9Qqo5k7N1z2yRlCol nyfH4GQPsn6L0XLQYDcEs6nXEnE9q0qGImttOOSfF2VIr7rj4RfTw5pQhom7SYvo/XrV Ci2h/PK4frU+4ZywCzH4WujiIoMsHIPfGONU0+9uLtBeKa7JQbZ4y2mKz0IhyRNvDBCc iH8pqngneiNnwHRtCik7rylIyosPRYJN3k7WoxzdvkBkfnP3lKfQbxUwfZ7CYSTTDBa7 W3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jZAdaB6K; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si3285421edv.148.2021.08.26.09.27.55; Thu, 26 Aug 2021 09:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jZAdaB6K; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243151AbhHZQ0v (ORCPT + 99 others); Thu, 26 Aug 2021 12:26:51 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33184 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243104AbhHZQ0I (ORCPT ); Thu, 26 Aug 2021 12:26:08 -0400 Date: Thu, 26 Aug 2021 16:25:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629995120; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/z4eEHA/BvTTf9lcIYQIgsjWlsescoJO2hukCV5cUHE=; b=jZAdaB6KqtCGc5L9fF78GLHO3gKCyC69tQ/ShxyAaw8DtiCavCSphLaDw+RbmQpo4QUC7d mnx0Xuj6hht+s79ENc1QQOwualcUoWrgoFV4rkRTO3Z5DHAQ60f+osAqncAjjcstrLIW8/ nX1rO0XDUIl7z0b3YTfz7FS1y1BC6DM/UzLXEvElXPi+hsS6SBWBODgU0izNCdA+0gzwON eoU2txguHHlj5f1qFr74m9rx44nHmYjKPolC1mdYLsQh93OWk/SgUzf5hLVBQbDVZ0Mkcx LQK3OFSw3M91hFwQUBzJNRosetbblufnOkOT1ykNL1GVr9uNs0BA5zaD7jld7g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629995120; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/z4eEHA/BvTTf9lcIYQIgsjWlsescoJO2hukCV5cUHE=; b=FUlo3D9n0Soqkd49vxSFv80nIm6sWXibUk3iEtonan81mBpYP/gUoARv7uxkwwWMcP9EQa c1tB8vY1keZxnXBw== From: "tip-bot2 for Will Deacon" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/exynos_mct: Mark MCT device as CLOCK_EVT_FEAT_PERCPU Cc: Daniel Lezcano , Thomas Gleixner , Krzysztof Kozlowski , Will Deacon , Chanwoo Choi , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210608154341.10794-3-will@kernel.org> References: <20210608154341.10794-3-will@kernel.org> MIME-Version: 1.0 Message-ID: <162999511928.25758.13349701269137366922.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 88183788eacb782eb6e1295f1934fb9531b503d6 Gitweb: https://git.kernel.org/tip/88183788eacb782eb6e1295f1934fb9531b503d6 Author: Will Deacon AuthorDate: Tue, 08 Jun 2021 16:43:41 +01:00 Committer: Daniel Lezcano CommitterDate: Fri, 13 Aug 2021 09:24:22 +02:00 clocksource/drivers/exynos_mct: Mark MCT device as CLOCK_EVT_FEAT_PERCPU The "mct_tick" is a per-cpu clockevents device. Set the CLOCK_EVT_FEAT_PERCPU feature to prevent e.g. mct_tick0 being unsafely designated as the global broadcast timer and instead treat the device as a per-cpu wakeup timer. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Krzysztof Kozlowski Signed-off-by: Will Deacon Acked-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210608154341.10794-3-will@kernel.org --- drivers/clocksource/exynos_mct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 804d3e0..5e3e96d 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -465,7 +465,8 @@ static int exynos4_mct_starting_cpu(unsigned int cpu) evt->set_state_oneshot = set_state_shutdown; evt->set_state_oneshot_stopped = set_state_shutdown; evt->tick_resume = set_state_shutdown; - evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; + evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT | + CLOCK_EVT_FEAT_PERCPU; evt->rating = MCT_CLKEVENTS_RATING, exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET);