Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp76527pxb; Tue, 2 Mar 2021 19:48:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWZQ17EufaAT1HYAp1dr2a1Ah3dyc8X9Iz8ZSrG5GN6I6YNy76UxKTiXeJq0QLycQfK+I6 X-Received: by 2002:a17:906:7015:: with SMTP id n21mr14781774ejj.391.1614743302982; Tue, 02 Mar 2021 19:48:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614743302; cv=none; d=google.com; s=arc-20160816; b=tsLX0DDyLs/MsUf9WkOEv4euYTQaB6DYbxNeyBMXOyDewghAAnYXismMoN+6HKtHss AHmOQR4lxYQ0KbAgyyZL//qqt4xRHCBy0dMsK2e7NEoJiTniUUf41EKxO3HRpydXgCir cMANrl1ViMhJ6kVdi8/jHJcDOU+VKIdaJXAVQz2P/d4mo0nSHfOPIVBg1jIVTU5cr8Ya VcsSg3N2gCEw6o7R/jR5GmIWJNLvo7Se6SJRsWzJmZvNN/VSIWThRCAB4FeDsexMoeC9 CaOp3M3N2EeiJbRzdbpDdAaGZPqaoeD3D2UKvhp+JheWsbZruIgw+LJ119A3ul59IA/Y +s6w== 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=fscgDH0m3EQ7bsgkH9wL+e2vPhDiUqRohmxKGWhpAI0=; b=EHAa0MgrVGlH89htK4TYRxdYb7b3hcr+FTGbNJRvPyw1i9wFm2LkM1EaFsHp45hOZK 6iJ0OyuOLh8HUJOKuJy1OGZpUMcKhoD365mt06pvtrc/Zlk2LaCeORHsRGJVNRi8XAPE PE0IA6Uirlzu3y4bk0caKTDPSPOZoptmMKzyXwPWvLbOxgtM1ONTmJo+7XQpmqT2kZ4Z V4PJqjNYv4IhURfHuRdSiWl6mkGiux7xnJ6M09r6dfBgvRg7Eb39t2cBSEGem0/hjEiH KC9u7BtUQmen5t0pOR4PnHk9V9lYt2VUWSNZWT43oqJ7ioHjIeNMeLOHGTQHQz9UHqfQ LRgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rbx8gdTS; 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 os24si11673052ejb.729.2021.03.02.19.48.01; Tue, 02 Mar 2021 19:48:22 -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=rbx8gdTS; 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 S236364AbhCAObT (ORCPT + 99 others); Mon, 1 Mar 2021 09:31:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:57406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236359AbhCAOaw (ORCPT ); Mon, 1 Mar 2021 09:30:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D90D64DBA; Mon, 1 Mar 2021 14:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614609011; bh=MucoJTNiFHCFYNwN2fx6G+sQ2VpQS44c0zeeuezrTos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rbx8gdTS4v7hg0KO2eaeQK1DKUK2N5PyUae0bKPtj1xcqfwK9GuL3iA5dRfa87Md5 yqhDHWsH0V28RXC65G0kbq5pd2YTh0WydUc44+d8gFB7N+Y0SvVXNK3oiy73qAlNA3 I1wVEcFmeulFH7Ya+U/4kgKkzP0vvDBbQmESCSa2vii3yNwTAvOEJOPxDBjA0KHZFE NLfGwF45GTKehISWdoCSRBJWI0pCPAKXxgMs1xedQcSUKAEv+RvP9qI8YuLeTmoJkJ UE4rElruxCD9TKEF2DkIfI8qDzIzvPZSPk4fFBl8A9kLBpaFJsMczC8rD+kXiLoB+b h9vPdPtctGERA== 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 4/4] perf: csky: Using CPUHP_AP_ONLINE_DYN Date: Mon, 1 Mar 2021 14:28:22 +0000 Message-Id: <1614608902-85038-4-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 perf custom definitions in hotplug.h: - CPUHP_AP_PERF_CSKY_ONLINE 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/ --- arch/csky/kernel/perf_event.c | 4 ++-- include/linux/cpuhotplug.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/csky/kernel/perf_event.c b/arch/csky/kernel/perf_event.c index e5f1842..ccc27c3 100644 --- a/arch/csky/kernel/perf_event.c +++ b/arch/csky/kernel/perf_event.c @@ -1319,10 +1319,10 @@ int csky_pmu_device_probe(struct platform_device *pdev, pr_notice("[perf] PMU request irq fail!\n"); } - ret = cpuhp_setup_state(CPUHP_AP_PERF_CSKY_ONLINE, "AP_PERF_ONLINE", + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "arch/csky/perf_event:starting", csky_pmu_starting_cpu, csky_pmu_dying_cpu); - if (ret) { + if (ret < 0) { csky_pmu_free_irq(); free_percpu(csky_pmu.hw_events); return ret; diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index 7f25b44..3a76019 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -182,7 +182,6 @@ enum cpuhp_state { CPUHP_AP_PERF_POWERPC_TRACE_IMC_ONLINE, CPUHP_AP_PERF_POWERPC_HV_24x7_ONLINE, CPUHP_AP_PERF_POWERPC_HV_GPCI_ONLINE, - CPUHP_AP_PERF_CSKY_ONLINE, CPUHP_AP_WATCHDOG_ONLINE, CPUHP_AP_WORKQUEUE_ONLINE, CPUHP_AP_RCUTREE_ONLINE, -- 2.7.4