Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp76282pxb; Tue, 2 Mar 2021 19:47:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPZjVU4VmyYWpJBAC/bQlwx3v/UMuY7+g8vC3jagPQNnkMv12mA0bUk5tM8lwooQZ7MMth X-Received: by 2002:a17:906:6047:: with SMTP id p7mr23941178ejj.400.1614743265932; 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=rKPKnuqnJl/n/x3oo1Kw2VQL0hbGIWVGE87ZLxZmV469A5Ftlj9fEK69mW5Hl8fsS9 jbSXyePkTmUC7mtLgJ674hgVE9c3xpopzYu94fi0T1ivH5De6qW0WpsqYv5w19JqjZZe 87Q+rw5cjmShgnMjsD4YPXW70kg693adjS6mXoqRFQVP/XnJQQzU1UbVNYZBwU5hNGzp yPlotlQi9MzUNkXUcFTm5trQGkwigiYSNkZy+oXhRLms37Vqh+EuvjUQDFl3FT6D+DUH uMWF1xYXhPbXLpUTo7Iq7kT57XSsbZfKeZ/xN3BbP69uOGcN9R7DnsmTmjLhjvgglTil pj1Q== 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=LpO5i3Uug9AKgq/+prUk75SuhgNt7d65EvMGDqjVwTY=; b=PqzffgSL7M8fG4mMyketkV9RR2UDFKKrRZH2aXibrRaDB4HrRGBdROAbGu6yFipKOc 4zJAwf0cwh9ijSi2ng3O2Hco8umd2KZtwg7UcdZjXPJOrEVxjGj1GPIZItSOsbFCUXD4 WYb54Z02bIomUzZSaBFGGAe6gb7YGF8k6SlIJ17zFZ4E/T68gtJnk6jCdf061aJjPILJ EPlI8TumFuMh8UVSX1Xi4k1az7KLKwP3Rg1jFFdbdXumMnlE/2yazzGb2EQCIMK8Rtuo PIowC6iuga5rz/8Fkf69DBOWJZrBLy3mpM+Ov3Es8uzn+v+5iUPL8Nr6n8aitY44VC04 /nDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GT4Zb990; 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 gr2si466792ejb.65.2021.03.02.19.47.24; 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=GT4Zb990; 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 S236354AbhCAOas (ORCPT + 99 others); Mon, 1 Mar 2021 09:30:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:57258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232960AbhCAOam (ORCPT ); Mon, 1 Mar 2021 09:30:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5331D64DF5; Mon, 1 Mar 2021 14:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614609001; bh=yJODrusALU+6lGK3sTBTBJlwkQywsg5kKkp+JdY5FlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GT4Zb990BBV21L5216of6GW7Ifg/KewOZqZ9YV3HlxJ91EG1P2uadJ68FjQf+nMnD 2GLHjGQMPDubUtQqe2x3Rd0B5zWnys94b5cc2dwQ6cYEGDxSDIV4krPFuwM9ypW8Gr uBisMEypw1sy19olWb4jIqD1bvR9Rd8V5ucmvLnVKBkIrzLrPX0pd8mwaQn3StSjWU YQzjDC50XFYq9j5Qqmb9/xFiwxYS75+nR8df/9OnsSdO1jv6rrGaz8fB1lnkEIR+hI aj1Y+f3pwrcDNzmaS3BRR3r4zhkX3i1quWyPVPrsqXHZBVs/htwPyO+9w5hnPjZmiR G7CUfzABALFjQ== 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 Subject: [PATCH 3/4] clocksource: csky: Using CPUHP_AP_ONLINE_DYN Date: Mon, 1 Mar 2021 14:28:21 +0000 Message-Id: <1614608902-85038-3-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 C-SKY clocksource custom definitions in hotplug.h: - CPUHP_AP_CSKY_TIMER_STARTING For coding convention. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Arnd Bergmann Cc: Linus Torvalds 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-mp-csky.c | 4 ++-- include/linux/cpuhotplug.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/timer-mp-csky.c b/drivers/clocksource/timer-mp-csky.c index 183a995..fc17d77 100644 --- a/drivers/clocksource/timer-mp-csky.c +++ b/drivers/clocksource/timer-mp-csky.c @@ -151,11 +151,11 @@ static int __init csky_mptimer_init(struct device_node *np) clocksource_register_hz(&csky_clocksource, timer_of_rate(to)); sched_clock_register(sched_clock_read, 32, timer_of_rate(to)); - ret = cpuhp_setup_state(CPUHP_AP_CSKY_TIMER_STARTING, + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "clockevents/csky/timer:starting", csky_mptimer_starting_cpu, csky_mptimer_dying_cpu); - if (ret) + if (ret < 0) return -EINVAL; return 0; diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index f60538b..7f25b44 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -131,7 +131,6 @@ enum cpuhp_state { CPUHP_AP_MIPS_GIC_TIMER_STARTING, CPUHP_AP_ARC_TIMER_STARTING, CPUHP_AP_CLINT_TIMER_STARTING, - CPUHP_AP_CSKY_TIMER_STARTING, CPUHP_AP_HYPERV_TIMER_STARTING, CPUHP_AP_KVM_STARTING, CPUHP_AP_KVM_ARM_VGIC_INIT_STARTING, -- 2.7.4