From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C38CAC4743F for ; Tue, 8 Jun 2021 15:44:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A017961360 for ; Tue, 8 Jun 2021 15:44:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232536AbhFHPp4 (ORCPT ); Tue, 8 Jun 2021 11:45:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:57264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232310AbhFHPpw (ORCPT ); Tue, 8 Jun 2021 11:45:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4D3B761354; Tue, 8 Jun 2021 15:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623167039; bh=+6X6fbZAHwPHNf4hp9N7d+r6MK51/LkysHT0rpz/4EE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IA0EVhs1fdei1bP7ZgR0vVbjQ3rYuJs8nVHdPzOC8IcQRiTwRYHCZnxXfNPUwy7Vr JTPjBMsQexNBA7C5gphKXPAmE/t/XP1Y9yxyhFzws9A+cZLg7oEHWhbxCLRxjRZvom sqxacUsXddeGxzPTPmuDP3MopaNyuNkQ919pDh2csNJzdZkBnsxffhoM4J2uK9WxG6 4GbMAMig/6GMw9KUbFeC6GOcjUKYvqxY7SGl5brU0xkvUi//nMR1x12MUQQ8j6IgX3 jv9T0A7i629U9/xHrVGTMLGr+10+kIZbwfngQ8JuLLZ2rRO6ZH66EnRonnplIb4glG UoFQI19OufWNg== From: Will Deacon To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Marek Szyprowski , Krzysztof Kozlowski , Krzysztof Kozlowski , Chanwoo Choi , Thomas Gleixner , Daniel Lezcano Subject: [PATCH 2/2] clocksource/drivers/exynos_mct: Mark MCT device as CLOCK_EVT_FEAT_PERCPU Date: Tue, 8 Jun 2021 16:43:41 +0100 Message-Id: <20210608154341.10794-3-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210608154341.10794-1-will@kernel.org> References: <20210608154341.10794-1-will@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 804d3e01c8f4..5e3e96d3d1b9 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); -- 2.32.0.rc1.229.g3e70b5a671-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC406C47082 for ; Tue, 8 Jun 2021 15:47:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D9EE60FE8 for ; Tue, 8 Jun 2021 15:47:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D9EE60FE8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cY3JZ3bK3rrnsXKpINDyA8Vb/pkbw6D1ZuJB28B/YDc=; b=xkjR4pY3q8HA3a uAUdz4Si/4OwkXkjktTEoRiXOQzbYCkjB9SpblBB6zvLlil+ePCG36iSlA7xEyPvo+kyH3EgkLM6B 4nFSqf9MHRmBP71xis+llUeIFmxKQDIIXtOMxUZ+pw8xa59Um6wO8J4cntw+c98nyxKdvahM+nYM7 ufO2AHgPo/whfvvD9Nepe/0MREV8lFbWJgZdqHZ37H0FIYqoXGsEOyVbVxx8/WpO3zX9k7i4R683w lCk6h6jMLh1qz8fJbqfuKfKjV1Qv2Ey3zOs95T5MFwafCsW/6AMNPKyUn5nqYAo8rHYpSth+cjDCD FYT6nCJJcOK3Fc+SLfXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqduz-009JHK-Ml; Tue, 08 Jun 2021 15:45:30 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqdtY-009Iq0-9q for linux-arm-kernel@lists.infradead.org; Tue, 08 Jun 2021 15:44:04 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4D3B761354; Tue, 8 Jun 2021 15:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623167039; bh=+6X6fbZAHwPHNf4hp9N7d+r6MK51/LkysHT0rpz/4EE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IA0EVhs1fdei1bP7ZgR0vVbjQ3rYuJs8nVHdPzOC8IcQRiTwRYHCZnxXfNPUwy7Vr JTPjBMsQexNBA7C5gphKXPAmE/t/XP1Y9yxyhFzws9A+cZLg7oEHWhbxCLRxjRZvom sqxacUsXddeGxzPTPmuDP3MopaNyuNkQ919pDh2csNJzdZkBnsxffhoM4J2uK9WxG6 4GbMAMig/6GMw9KUbFeC6GOcjUKYvqxY7SGl5brU0xkvUi//nMR1x12MUQQ8j6IgX3 jv9T0A7i629U9/xHrVGTMLGr+10+kIZbwfngQ8JuLLZ2rRO6ZH66EnRonnplIb4glG UoFQI19OufWNg== From: Will Deacon To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Marek Szyprowski , Krzysztof Kozlowski , Krzysztof Kozlowski , Chanwoo Choi , Thomas Gleixner , Daniel Lezcano Subject: [PATCH 2/2] clocksource/drivers/exynos_mct: Mark MCT device as CLOCK_EVT_FEAT_PERCPU Date: Tue, 8 Jun 2021 16:43:41 +0100 Message-Id: <20210608154341.10794-3-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210608154341.10794-1-will@kernel.org> References: <20210608154341.10794-1-will@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_084400_417332_57F55ECE X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 804d3e01c8f4..5e3e96d3d1b9 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); -- 2.32.0.rc1.229.g3e70b5a671-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel