Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp76277pxb; Tue, 2 Mar 2021 19:47:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/0hthh0JlYezMcZ9syKeiormDZeYpmrICHqXS3xp5juOlHRSt35nOwRfPV8EHCUHXyCUU X-Received: by 2002:a17:906:3883:: with SMTP id q3mr23346163ejd.160.1614743265481; Tue, 02 Mar 2021 19:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614743265; cv=none; d=google.com; s=arc-20160816; b=kdG682CvAwSfEpmrxGPbShfBhHVS9bKyuuTnAGu5GV6cKEmm6yeJIYO2A3RIJYz2nk PT0i7UR+NyBVMRlmGFZNKJRbQEtDaCmqaonzigUanPla/GN5FWI3aPoKNZ7Rn/rXM7KX L2cGNv0KgDIFuDa/Shv322Wdr8s4MRzy5kFLKbT9Yb5uHETLKO112fDKCVCOpwVSl8bi n9VCS+wK7iOt2I0/xmUQAN2aEHCUASv2bumQiCRTPfebHlocgZ0H7ky8Fg30WJwvQ/99 tz1vk6+2e2Cd+ho3nkvSJsUo9DktmiHPZfJk6S5IKxOJhHZMDaId02ysYbenRpdljaNm 00yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=i0ZBVt0hzn4NIKrEIndffFmyqift7SSGC32/tFlkGM8=; b=VEOY27PN3ryQEHo4ANuzv3j6gbEuGnuHg8ZZ3ZoUuGOeKr5PG4zAt8LvMVaXf/F6qS 8RLKwv8zcrA7/u/5VA7ZDboM51UT8m5ibV3/LPBsLq72W0PKJS54CLSItjz5P2D+f+ZW xOxtix0QPH9JUSWA6wDPxWYslsG0mKBOCIDP4/3RgqV9lqDZypDNg9VpDeX5PXQnMpc9 +ZekAcp2v1ei+neuJ4DdvCTqxUpqP7X191g2TZUK5VKIIypGRKH8dnE/TqcUyARr3PIm XTFKG/d17mJdFNywM+7KvuHtvShglBBJuBuAdERBn9L5NkHIJAlNXkiDVwZI1t2gZ7Yg yDDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hu91S+8z; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si6621112edp.256.2021.03.02.19.47.22; Tue, 02 Mar 2021 19:47:45 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=Hu91S+8z; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234688AbhCAOa3 (ORCPT + 99 others); Mon, 1 Mar 2021 09:30:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:56892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236334AbhCAOaV (ORCPT ); Mon, 1 Mar 2021 09:30:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4874164DA3; Mon, 1 Mar 2021 14:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614608980; bh=OArrRIuC6qn8rHGJqrdoBqnUGJ5tnNzIJ9KKzMe2piE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hu91S+8zTjYMGojrOYDPV5ZNI3asCKh/MSTSyMNzUKh4vy4hwLNcdt49KpGgVh2Ca OBE8dcgLFkgW6xVO2cL5N+IvQB4zUsZNzoATofycfRe4/eMqNi+G2PXv2pKa2Z9T9r 2OU8R6nNttlvksUmWuKwUx0i40u+lcjZQot85JTuYim9QhK+dVMzqK+1/9vvwxNkTJ V1MD+HO+V8BPs85pLyKHxDkncBO40y0yrVq77LdiIObDQuksCfHnI2STLzFYbffNgz 0euFHxT3oOgNlyVX3DjHNAPKoY6TBEUTqf21oYO0CxDSTDUNJ2gwvE9cCu9WnD7s4/ eUhDtb7ND4lFA== From: guoren@kernel.org To: guoren@kernel.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-arch@vger.kernel.org, Guo Ren , Peter Zijlstra , Thomas Gleixner , Arnd Bergmann , Linus Torvalds , Anup Patel , Christoph Hellwig , Palmer Dabbelt Subject: [PATCH 2/4] clocksource: riscv: Using CPUHP_AP_ONLINE_DYN Date: Mon, 1 Mar 2021 14:28:20 +0000 Message-Id: <1614608902-85038-2-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1614608902-85038-1-git-send-email-guoren@kernel.org> References: <1614608902-85038-1-git-send-email-guoren@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren Remove RISC-V clocksource custom definitions in hotplug.h: - CPUHP_AP_RISCV_TIMER_STARTING For coding convention. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Arnd Bergmann Cc: Linus Torvalds Cc: Anup Patel Cc: Christoph Hellwig Cc: Palmer Dabbelt Tested-by: Guo Ren Signed-off-by: Guo Ren Link: https://lore.kernel.org/lkml/CAHk-=wjM+kCsKqNdb=c0hKsv=J7-3Q1zmM15vp6_=8S5XfGMtA@mail.gmail.com/ --- drivers/clocksource/timer-riscv.c | 4 ++-- include/linux/cpuhotplug.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-riscv.c index c51c5ed..43aee27 100644 --- a/drivers/clocksource/timer-riscv.c +++ b/drivers/clocksource/timer-riscv.c @@ -150,10 +150,10 @@ static int __init riscv_timer_init_dt(struct device_node *n) return error; } - error = cpuhp_setup_state(CPUHP_AP_RISCV_TIMER_STARTING, + error = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "clockevents/riscv/timer:starting", riscv_timer_starting_cpu, riscv_timer_dying_cpu); - if (error) + if (error < 0) pr_err("cpu hp setup state failed for RISCV timer [%d]\n", error); return error; diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index 14f49fd..f60538b 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -130,7 +130,6 @@ enum cpuhp_state { CPUHP_AP_MARCO_TIMER_STARTING, CPUHP_AP_MIPS_GIC_TIMER_STARTING, CPUHP_AP_ARC_TIMER_STARTING, - CPUHP_AP_RISCV_TIMER_STARTING, CPUHP_AP_CLINT_TIMER_STARTING, CPUHP_AP_CSKY_TIMER_STARTING, CPUHP_AP_HYPERV_TIMER_STARTING, -- 2.7.4