Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4991729rdb; Fri, 15 Sep 2023 21:05:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxTc0mcDJ2+L8MVSjyA7rmVECp7flxY7feKGjvo4T+zFMKFyvBiyY5scCaHgsnIQxhem24 X-Received: by 2002:a05:6a21:99a0:b0:15a:2ef6:96d7 with SMTP id ve32-20020a056a2199a000b0015a2ef696d7mr4759223pzb.10.1694837109312; Fri, 15 Sep 2023 21:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694837109; cv=none; d=google.com; s=arc-20160816; b=X38C8Ecb3hZFe6B5Bj8xQku0FCkKJ8O/Bxzao+FTh99vHLly3sE5x2WLqjsmDOAg0+ FEoVCLfMrfSjksoRulQPpbraIxHPBBRv43y4aQrFK67VxXZ3Az7zlVTbfVetCmFhKgVT qQUj74x2MwRBezgCPpZtsobYu6KwZbCQqyuBoclksCZFmlqiHD0itLtgM1X0itqSLddD iC8DltNezRlH/KB0Q1FIzT3ZakXD54+LVoCUDH/0q+6hFMN0LB0uOOyFiwIecqMkslO5 Wtoc6q5n288Fy2ILYTnmqF8ROHuqgHjuIl/kk78G4h8A8zfticQ1zhzlDExFdR1vF9Fg jKgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=0VtgUtus3LRehL4neqp1OYPW/02VDjf+LHA0REetHQw=; fh=kXSkXFacTVTlVHq0XnHvR0iN61knZqi7sPJIGv3JAWo=; b=WDqB0Ur7eu/nkMlvnonXY2rvd4BoIdHe8wV0RZb1QsAxwWAdvKW24l5dDlkg8+UjxF JhYzi5BMJUg254BBGZmZ3lteuhhXGOc5oWvPtLXkYlyKHsw9gVFGZKEXgTGUZffIAign LIIuVE1mX+Ef6awc4KCf6Xss3LrbsHLaQSqeO/WcPzGHXzZOfGSwJIYXgSP1BUxIw9OV ZAk8DK/5P3ZsS9DyZZ2+aLg0ruMBQobjaEQGzO67oRqOv2XMEQtY4I7e5nStTFuiPIkj LTJpo1T2vxOPIy8Z1IydKGu6h830FRVTLm8yX9wonQ1dcHcsPiXTchQO+GiYTEcxt2Kg 2nPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4AI9NYwO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ay26-20020a056a00301a00b0068a55cc9a10si4306044pfb.381.2023.09.15.21.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 21:05:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4AI9NYwO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8B6F982A5B30; Fri, 15 Sep 2023 17:34:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239050AbjIPAdl (ORCPT + 99 others); Fri, 15 Sep 2023 20:33:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238576AbjIPAcu (ORCPT ); Fri, 15 Sep 2023 20:32:50 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66132715 for ; Fri, 15 Sep 2023 17:32:09 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-59bf252a83aso27490207b3.3 for ; Fri, 15 Sep 2023 17:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694824329; x=1695429129; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=0VtgUtus3LRehL4neqp1OYPW/02VDjf+LHA0REetHQw=; b=4AI9NYwOs7Qxw+F4NZFoKEvkF/ZhJhsoOqPm3pP+SBcEGD4pphMfgvr2oo2Sdm3PGX JfCT6509S/I71oH8ban7uIF5Td8ynYv4sED2o/8WRpjFyyJkWaj14lYJRPq+LiB0L/hv PJkh+NgRmVQME5EKzrxILu5YSGUY8j9n2/yjotBC6TLm7nXXUuL7ZE+vPdBE7KvfuMUR 8Kz2aXpwhnjFkqDktr4zIpXAVG+YentMA68hD+Kk/flY5i4QXqwc360B3xdG3OY8Q60z wnOrzJWg7kW8JHZLv4A2zNYDQxxYdoKzYA4qQWREXcEWHnXvb1aQqABFI5LPbgTy1ypd thSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694824329; x=1695429129; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0VtgUtus3LRehL4neqp1OYPW/02VDjf+LHA0REetHQw=; b=i6bIFKWuYfjrlKd0pXZfEijP6GPg4YYNYAmwACdfATMCmpq8fmzGUh1oSe0muGMQUh IPnmLlg/PKv2+cGDQehNaVJ+ZhAFA9pVt460Wtx/oLsvM8W6qnMS4kA6lP6QzoaifwzP 6rkqvP+Yq4cp89APCK3PEgHplGU30lFINuQrYE5sTB/4+ZiRkBgrVKlB2dV+u+sG5pIf WUVGqVvYtj5tRYCMOtCeEKy9vPEu1/KobebXQe8wDKT0SV4axRwaPkGVQHY4/5pkhjvI fLjRltCEJ/Mj+xIonUz5RCmMG39eDs126Iw3akGXynpdJv6uh5T1yvLnVrrsyFzco0V2 5DHg== X-Gm-Message-State: AOJu0YwnTAeAoHhVTVdW6ycsmCEoyhtsLA/MVTzCOLu8IU+ndcs2leRQ RrrVMU3vaanIbpBa3Z1Jp6hGZJv31LI= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:b620:0:b0:58c:a9b4:a64c with SMTP id u32-20020a81b620000000b0058ca9b4a64cmr86672ywh.1.1694824328926; Fri, 15 Sep 2023 17:32:08 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 15 Sep 2023 17:31:16 -0700 In-Reply-To: <20230916003118.2540661-1-seanjc@google.com> Mime-Version: 1.0 References: <20230916003118.2540661-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog Message-ID: <20230916003118.2540661-25-seanjc@google.com> Subject: [PATCH 24/26] powerpc/xics: Move declaration of xics_wake_cpu() out of kvm_ppc.h From: Sean Christopherson To: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Sean Christopherson , Paolo Bonzini , Tony Krowiak , Halil Pasic , Jason Herne , Harald Freudenberger , Alex Williamson , Andy Lutomirski Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Anish Ghulati , Venkatesh Srinivas , Andrew Thornton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 15 Sep 2023 17:34:26 -0700 (PDT) xics_wake_cpu() is provided by core PPC code, not by KVM. Move its declaration out of kvm_ppc.h and into xics.h. Signed-off-by: Sean Christopherson --- arch/powerpc/include/asm/kvm_ppc.h | 2 -- arch/powerpc/include/asm/xics.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h index b4da8514af43..72fee202d3ec 100644 --- a/arch/powerpc/include/asm/kvm_ppc.h +++ b/arch/powerpc/include/asm/kvm_ppc.h @@ -1072,6 +1072,4 @@ static inline ulong kvmppc_get_ea_indexed(struct kvm_vcpu *vcpu, int ra, int rb) return ea; } -extern void xics_wake_cpu(int cpu); - #endif /* __POWERPC_KVM_PPC_H__ */ diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h index 89090485bec1..17a45c022bd9 100644 --- a/arch/powerpc/include/asm/xics.h +++ b/arch/powerpc/include/asm/xics.h @@ -32,6 +32,9 @@ extern int icp_native_init(void); extern void icp_native_flush_interrupt(void); extern void icp_native_cause_ipi_rm(int cpu); +#ifdef CONFIG_SMP +extern void xics_wake_cpu(int cpu); +#endif #else static inline int icp_native_init(void) { return -ENODEV; } #endif -- 2.42.0.459.ge4e396fd5e-goog