Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp18209pxf; Tue, 16 Mar 2021 20:39:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnNjMBWK8IphF6pwr05Dk8nfj+JEXPvtujbYZg1/RKAl+tvqeVjrXD8LI0jhmLhfnm7del X-Received: by 2002:a17:906:68c5:: with SMTP id y5mr33455422ejr.371.1615952395514; Tue, 16 Mar 2021 20:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615952395; cv=none; d=google.com; s=arc-20160816; b=vbm7VWnmECrwya7osnKdCQeCzOk3FFyAVGR4oangJmMxAXRFMIFPuGh3NWbe8YIukA CA663UnaPv1e8lcdqqVxu7iexuCZkv0LnpzoptRMsxYw8ug1hBJ/NEoqJNBjfFW2yGsz owRuCoNp/pzxls6lhptg0IKzJT+fkJpkZYs1deYdxRKDcn5ZssAjIuPs+G+By4aNL/DN zWIP/ZmN6kizodjxPXiQjeNYNpAj3timI6k+UdmWspoxqG8ZtytjIWqe19owT7NRzKrH HWeQsqA6etrvEQMtrZwJCtHGvovb1MPcns5Za1gKANwFJGw9qtNgCmBNUNDlcRNnZbQM IbfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=vgC4Hi1wlvfUamR+lmJh7JgDIUhelSU6Ukx+EhusVr8=; b=ynmwOPbI4qWpJMT2BbLWd3EA2OnKEVFsc5aOMuQBp6IgLbtkxm1XkZhvlENNYoakXr 6ezj82tSq6VhiVX+lZxdI46j+KDfBkj/X/gt53PxrFet68qzTWrt6CQD7Lo8kfv73VwG oP6JXOKQ+BElUqGc+BwNKksBVMYfjEOXPzU4HVhmHS69Cdj3SPlJmSAhBh80mSp6eSCJ 4rddkRIozEpdCR6sxjDITJmVdbEpJ3JizpH0OMhX40AsEU3co1AryvhURSlgfyifxNg4 8v6Zd7vo78abXspD0lwDCEK45ZxEqw4DHxZR6TrBkSlw+i3LkcCpQUANffKypnOIH7G4 H9Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Gnx8QJNk; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si14786206edt.469.2021.03.16.20.39.33; Tue, 16 Mar 2021 20:39:55 -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=@google.com header.s=20161025 header.b=Gnx8QJNk; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbhCQDgt (ORCPT + 99 others); Tue, 16 Mar 2021 23:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbhCQDgT (ORCPT ); Tue, 16 Mar 2021 23:36:19 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F71BC061763 for ; Tue, 16 Mar 2021 20:36:09 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id w8so336761pjf.4 for ; Tue, 16 Mar 2021 20:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=vgC4Hi1wlvfUamR+lmJh7JgDIUhelSU6Ukx+EhusVr8=; b=Gnx8QJNkZubSSIyu4WGdQec8Ajw0vvWuYdvfhDVqP7/7F/Z57lmQ5MThtB12qZYecE 4ERfVxOn9an7bDs4FarZsNvAl1HKlaJ6ZwlO6KQTd0o1thIC2T191NBL/f+ZSg5AX8kn QLCAn7bmHEql+ZdPe4za5vCUVQacHBJRX4DuA7ybt9GHapatznswao4DWqwjEoE1+Ei3 r3cayDqbinfJCWfQFAXEYCBsQ6i4i4FfLF77IPJLbsSkSTX4mS9LenT+OwfBn/cqKMoN 1UuanW+nOKrqWL8LyoFcXPDO64EhOXQ90gf2lzYZ9bMO5w8zTPVCioRp3wdrhxMUXyJx /YIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=vgC4Hi1wlvfUamR+lmJh7JgDIUhelSU6Ukx+EhusVr8=; b=dtdkhq+fomql3dOseCp6dg61hnyvyxODLLmGnfLI7ufyhtSpfA7rLrd5/Lj5JRbiHK p5IETlEdu4PJlcgWJGFKG65dKQtojvgBc4kAn4mcSsqysLEjKGbLaYMthWkwpFmx+uoW NidiaMDqaieWvBVIbJX6zg3zmDhluyh50sEbSFgTK6e+LqNNW6nmie/Guwnk2V19woV6 DLA+mOMS0w5iOltDk37wPPRghi6Xazb1UiwF6l/FNtkTvPEd08OSA3BJmwpUVzkZGRD5 nyRfab6AvS6VhNaslOJYkJSv5wX5f7Y5KbbwnywoahBDIvXwFJugt0kOpKMuC/LmK1w+ L/Nw== X-Gm-Message-State: AOAM530NTsCIz6FsiqiYsFMlHOXxLDH59Ds1oGXyhA9tPubKXF7cQv1t K7GrRwNvtOKeRcOqpNEAfr1qDQ== X-Received: by 2002:a17:90b:1082:: with SMTP id gj2mr2223421pjb.155.1615952168886; Tue, 16 Mar 2021 20:36:08 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id bj15sm730816pjb.9.2021.03.16.20.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 20:36:08 -0700 (PDT) Date: Tue, 16 Mar 2021 20:36:08 -0700 (PDT) X-Google-Original-Date: Tue, 16 Mar 2021 20:33:59 PDT (-0700) Subject: Re: [PATCH 2/4] clocksource: riscv: Using CPUHP_AP_ONLINE_DYN In-Reply-To: <1614608902-85038-2-git-send-email-guoren@kernel.org> CC: guoren@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-arch@vger.kernel.org, guoren@linux.alibaba.com, peterz@infradead.org, tglx@linutronix.de, Arnd Bergmann , Linus Torvalds , Anup Patel , Christoph Hellwig From: Palmer Dabbelt To: guoren@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 01 Mar 2021 06:28:20 PST (-0800), guoren@kernel.org wrote: > 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, Acked-by: Palmer Dabbelt Just like the previous one. Presumably CLINT is ours as well? Thanks!