From patchwork Fri Mar 25 14:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 12791649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C8A6C4332F for ; Fri, 25 Mar 2022 14:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359347AbiCYOkY (ORCPT ); Fri, 25 Mar 2022 10:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359348AbiCYOkS (ORCPT ); Fri, 25 Mar 2022 10:40:18 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF9B97284 for ; Fri, 25 Mar 2022 07:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648219114; bh=aiF5NcAtwR8oBoe7A06WL/K55rvwjMxWdm5rqjfDrI0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JnAzITPAbnC/MJeBNw0xd3+kZeCRQ8GJzIn0RzMjulsr7yPFg1DfnA66ZgdTLkqZD v6frpcA06arD8zny5vgxzcNxvAoIIabcFGYIJePIg6x3M4MltEryTNSSPZIhIGxp3v MgtM8mUfaf+bPOgOH9rhIxxRLE3KVZU/2lzZXyiA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from p100.fritz.box ([92.116.164.212]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKKUp-1nmGzl39Y7-00LlJI; Fri, 25 Mar 2022 15:38:34 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org Cc: James Bottomley , John David Anglin Subject: [PATCH 03/12] parisc: Move store_cpu_topology() into __cpuinit section Date: Fri, 25 Mar 2022 15:38:24 +0100 Message-Id: <20220325143833.402631-3-deller@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325143833.402631-1-deller@gmx.de> References: <20220325143833.402631-1-deller@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:a/jau4IvwTTMogFIhK3hLVTWJcVnE63wK1KV7W9+tfuDD9ydDm+ JjRbMvOk9BJ9GuHENWZiWHoyANEchDeipyLQW0aVyZGftkm7to99RAc7G87hIwTSWmc5ydk vffVEC9KXZHP+JQw8xatCoLCKUCKJZknBKii3wOUtNSL5jWhOBM/N7nR6fubYcbpIYt02rM UaxEhCGg6W8OCPqJx+qsQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:MPbL0tszTgk=:f241JD85xKA80YhsEsjRel vYhpUoNfMBTec9guhIt5FIPI4n4sAEZHj2JHWbnvCbthFfx/iiSwA17p8/EEmbeI0WKEGKT9e 6k67EZB225ASIgFdPtz50t71kniIePGsnilsMJbYUYnvr+k+E60XO24SblQCn4+DFz5FC7NJR ccJqljClf8WLqicedXwntXWbzvNi9k0deFvVlT4vAzs54KhW27nqEoGA5R6pa9LD1UaxLWDcI 8asiyyCOOXtktmuVCvpSfWOOqfGd+1iTQKe76UZ2d/T58CUr4d7xsrItit2Tzv646U5FGGz8+ jRxFhrV4gfj9BcLBY86mUoFesZ5fN3+iU/4QwS+skyhKSUTOHbuaXuSqtVsmKBw/GGGxfTKXB YJOuzeP6zVgeYuAC1nn9g5PjvvzirBWcCEdPobupLfP6Xwi2pXKHqftBTxD9OIV4HAqjcyCid zymow0y+b6khFVhx8WJQXiFV19LdLjdth5VuGnAqYcbXRzJ9ebMuc58QorZjGvVwF0y9JtWJa N6QnHw0tdOhtM9IM6w6n18XoGzqC4pnQRgnzEyOSzevpHShyo5QPWjiLfKt3mX5w8Vff+i1lq IvVcl/VuBQ9GQBxQngGUZ+EqNGfMO76ql8IN9rbhWh4+n5483JxYZlDv5t2FegjUZCHOr2V3o Qu1FhpAJ7gmPzZya+FC5FqbhzE8jZc6JrWJ/LPjvaNoz9gYR+ysI5p19rC5nhNsrV6pZsIhC9 Z/bmHFTygErVcGhAsSTNEvUj26F/gXbuvSepouThZ6FE7uhaMIXOvtudTqg128+KO2jfu0j3L VMdFlTNBG6RV8FdCd/9e3QTLKoJq7wyppREvT3Mftm4sSK3hgmfius1gNeXTqdxdejeTDOJ+S 9rO6/m/fRAsIq9q89TgBLbDgzWwbkFuxeUcQw26EUYjn0BNQbX69SGyh8uiIckYto8cRND2iu SnEqC3wPOB+MpQtMMd03DdL3sDsiEXO86DiJdoWophdvuSA71SVEewfGFhPV1P3mPXU1BNcvN cg7WALNqDFb3VOuT3U672qshxXWciusWShsEU2xWsJTDcHCU6+1Q0Ainx025Ixn8Hw== Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Signed-off-by: Helge Deller --- arch/parisc/kernel/topology.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.35.1 diff --git a/arch/parisc/kernel/topology.c b/arch/parisc/kernel/topology.c index 72d9aeb54fbe..dc766fb55491 100644 --- a/arch/parisc/kernel/topology.c +++ b/arch/parisc/kernel/topology.c @@ -16,17 +16,18 @@ #include #include +#include static DEFINE_PER_CPU(struct cpu, cpu_devices); -static int dualcores_found __initdata; +static int dualcores_found; /* * store_cpu_topology is called at boot when only one cpu is running * and with the mutex cpu_hotplug.lock locked, when several cpus have booted, * which prevents simultaneous write access to cpu_topology array */ -void __init store_cpu_topology(unsigned int cpuid) +void __cpuinit store_cpu_topology(unsigned int cpuid) { struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; struct cpuinfo_parisc *p;