From patchwork Mon Jun 26 16:13:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 113039 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7603173vqr; Mon, 26 Jun 2023 09:28:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RAyzZuGLw9dfI4tUB3ULMEH9Ncdn8+mT6WvCZtMntKbE3FBFVvDlBu/MEdqsrSo0RwqFR X-Received: by 2002:a19:6d02:0:b0:4f4:d2ed:410 with SMTP id i2-20020a196d02000000b004f4d2ed0410mr16583308lfc.41.1687796892497; Mon, 26 Jun 2023 09:28:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687796892; cv=pass; d=google.com; s=arc-20160816; b=HD7t3YMIf/TYq1/WPqcdXYx+L67CTnWcs/jeH4/qwcniCYLkvgSFBSKAsKUpmLv77m k9gTVhYekDNgubg0ID/wbvGlwNfSZ9phJDjLqXrQPHnhnTT4xC5tsZ9WVtxuSc7zjN2b u2n+sQHBWuLny7HmFE7f2UVancs/oQVyBm1p/jzyF7qm8sgVpBpOarh8VJw2varTOcMV nx8PpB8Kej9U2sXQvAl1aiFvbI7pa1QxLi5LOIpdcSxpEzKzIt+p2F1ybppDPsmMm1jJ ZUTRY+kK3hBI/2XywUKfa+Ki0E2Ua0cZYeI0DM8XGEsO7KpK1LBtHcLQRJ1svxKBOHw1 GMgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=YNDNDDgTUsyPXRQgSEG+d1UNHHXH2zOv0zQdKf3/Jyk=; fh=2UGwhCXpH2qOVBiE2vsd7TXiqZXRHu4NK1RRt/adHXQ=; b=Px3jMwJdntvuzmp+KdJVx2c9LvLDJkYK1tU0Kmm+jHDhqIq26ZfQBWGSFljvReqvvw HX38C7IwhCZL9vgKYxGbPDtsBNMnc4jP6WSzNDz1ExkAdPHPI7X+pwFEZVxQ0Kzgyn0Y LL50xtATvr9nukgCAUsgLRNbYsfMi7EYtvyV65Qk/+zQQy++qJ3jO6B78FlEPzVSGAOs ld3Dx//roQbtiyxFBrq8NY88TcTzzneR6cQFJMC6UIn3nOVI9tED9hPy286kPtu6BiHc NOGMuihPRRhidaRKVMotX7MgRXrEmqH2SbblWG6lRl0JEhFSy52w34b8sWyJoDWjBhYS dfWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="kJ8n/nuU"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=X6tru7ll; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a056402101400b0051bfc2f60c2si2727929edu.503.2023.06.26.09.27.47; Mon, 26 Jun 2023 09:28:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="kJ8n/nuU"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=X6tru7ll; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbjFZQOs (ORCPT + 99 others); Mon, 26 Jun 2023 12:14:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbjFZQO2 (ORCPT ); Mon, 26 Jun 2023 12:14:28 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1553310F5; Mon, 26 Jun 2023 09:14:25 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35QCoQIj022656; Mon, 26 Jun 2023 16:14:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=YNDNDDgTUsyPXRQgSEG+d1UNHHXH2zOv0zQdKf3/Jyk=; b=kJ8n/nuUJDDK3i+8etpqhbrj1a1ChBWOEEfJODqGa4U9rVgfuR7o59MhTgCswqifFdkX waW0mMtSjkIFA1G/uwimARyC7WOdzKJJgAwWfO/LSkYN0V3DPRrT68t/AvVr5Txb6iy9 fhlDGJqZFH+Vx/w0xTgBp1tnQe/nN0WJ8Pq3K76r7LtDHCD4MWXg1oiXK1t0b0cWi3JD ylJR4DaEQUFvglhOxWqPGdzyA6GDtEYzJyPy+sKxr5KtSjNxMKT+SfZSfnZACHQdbRfz 7WWOhwbEi6YHOk15xZ5xcZJCLXc9JkLgEbRnfh3I9cZwBlzUW5zgVeJddsicHYF5wllb HA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rdq9331xe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Jun 2023 16:14:03 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35QF5391011157; Mon, 26 Jun 2023 16:14:02 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2044.outbound.protection.outlook.com [104.47.66.44]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rdpx39vtb-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Jun 2023 16:14:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e+5oiDESQMW3cI4bR5twXyjtP5hJXjs+s6f9jVGuKcBN5+XPMMoO8VqrpsABLvJi8lmJP9q5qyLOyMWn3myF355SkpTbNHt3wQ/tksQD6TPC3/axsVPr/u0t+g09nyu66R1ebgC4aJUKksaFWQ68l5+mplwYBmFW/aIGo0zJyLf/W6og+Q/aRNabj9tDAMbs/JFwDnDzhnMO7H+4/0mYAUj/yG+pxn8KHGT0MbEKlw4nMAJ3rtLRfRRoDk9+VbqwmOogxyd1RRCQiLNF5NN830cIm/cpS+vXz+OEwpMcFU/sd+beEstAHBo2kDVa1kaYsMx19FftoiBmU5DoR3GMxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YNDNDDgTUsyPXRQgSEG+d1UNHHXH2zOv0zQdKf3/Jyk=; b=O27+wzfpmsEzjH7juIkeCsfdG4PdlqslXHw3YAk+/f6TDzdsBO2bbxaF+JJWayu+5Hj83bKurbAIOrQlLRfvZEVnoLaajfizxcHQGdEdtVdL5DIwN/N5uHIEkAKoqPbnILpiImLhTtcRt4hRGH7DJdqekqoq/7+mOaKfAqjRZ8NUMHTg2CzzYBFSOPHiH/Z4AnpBvhpm2l6Voefv47W05jwq6jifRXkrfmLHwL5vBgg+t9bWPuVE5OEnTx6WcLMkIM5oIsE0UPvE10SwfYPBS6A+bScoI+6ah7d2a5mZ2yy+lWAiORAPyTiTBos7nPhy7X5zrT+8VWAdUhVzEs2aFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YNDNDDgTUsyPXRQgSEG+d1UNHHXH2zOv0zQdKf3/Jyk=; b=X6tru7lldUEez2tryAPt15e8PclrVg64E1DSfwQZU+zxJdVxZrXrJWp7zsnRQxTH6Ubqhz8z5HH/qLoRj3hqUDZD0yAOK2uG2uAAPVUg5Zlw05MkEEGIgnVno+S5kLIKlYBcgjUopUkKiVTebsbLPZJmk6vqEhEioOioOnhgvsQ= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by CH0PR10MB7440.namprd10.prod.outlook.com (2603:10b6:610:18c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Mon, 26 Jun 2023 16:13:59 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048%5]) with mapi id 15.20.6521.024; Mon, 26 Jun 2023 16:13:59 +0000 From: Eric DeVolder To: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, chenhuacai@kernel.org, geert@linux-m68k.org, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: kernel@xen0n.name, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, peterz@infradead.org, frederic@kernel.org, akpm@linux-foundation.org, ardb@kernel.org, samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, linus.walleij@linaro.org, sebastian.reichel@collabora.com, rppt@kernel.org, kirill.shutemov@linux.intel.com, anshuman.khandual@arm.com, ziy@nvidia.com, masahiroy@kernel.org, ndesaulniers@google.com, mhiramat@kernel.org, ojeda@kernel.org, thunder.leizhen@huawei.com, xin3.li@intel.com, tj@kernel.org, gregkh@linuxfoundation.org, tsi@tuyoix.net, bhe@redhat.com, hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, eric.devolder@oracle.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Subject: [PATCH v3 06/13] loongarch/kexec: refactor for kernel/Kconfig.kexec Date: Mon, 26 Jun 2023 12:13:25 -0400 Message-Id: <20230626161332.183214-7-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230626161332.183214-1-eric.devolder@oracle.com> References: <20230626161332.183214-1-eric.devolder@oracle.com> X-ClientProxiedBy: SN7PR04CA0093.namprd04.prod.outlook.com (2603:10b6:806:122::8) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|CH0PR10MB7440:EE_ X-MS-Office365-Filtering-Correlation-Id: c7f6db8b-8381-4c07-f868-08db76605963 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gqBP1lAs5xheD3eCUi+6tEnQ3tzGUSTjoZZ1KaZ1EYFCDTt5DK3R1hbbF7F3syyEMso/cqtLKokP08xGNe5ZPnXkSokP7aWyCkelepiEkUq61xxYS6PizMSaT9nllPFgImX8+hOGWl7v9hsNrDxBeO/rhYruhPrmDn5F0F6AlCjKk4s0LsWhKcKYoJpudR51nLwQ2aajf7C8VcY1DJ14iAkeVTaH8Wf+QlAkoO4yfRkSMKQPeSSASKQmHZEBgUjV5nNZcaL0aKUQsWNX0HY7dJ1GFVi/FE1cvuciJnFuLw0ltOneFqNhWddn9BseJHV2rC39T+Ib61bXiO7aCSt6MzBdQb/Y25EvIRHGe83p6SPz8ezzIdIP4c2rUcYzh2fB30qJSuJwMuOTPhjYVGgl3J0v3Vqq0BXALpRcqKWoXeBv/JjLV/E57BWcUtQMYxQN4v7j2BV539JWGqQh6e8TlgxlmX/I2jE6AiB3DxzUKg5Ux1iqVqE1QEi2i+XvXHzlmMORsPfmQHPni/kwUz0fSy4XXi3tftyfFtsqEAEV0k69r9a+oHelhgVhsa9XVqL8a1i86j+j5BaDUOEfuu1ZeeqMrBawCEBAcZPpkiyy5Gk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(396003)(39860400002)(136003)(346002)(376002)(451199021)(6666004)(6486002)(478600001)(83380400001)(2616005)(86362001)(66476007)(107886003)(1076003)(6506007)(26005)(186003)(2906002)(6512007)(66556008)(921005)(36756003)(4326008)(7366002)(66946007)(7416002)(316002)(8936002)(7406005)(38100700002)(8676002)(41300700001)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GjzfC9M2IOCkxw3SW3T0lxeuzx9MyJlY/mRh0/ITSBMO6mZLk84Wvz+xUiTRETQIh9Uk2hdhobMhPvH1AH5W1V0mb0rxMHGUQdfCR55qeRIPsIAOqebNP9AvMtLgdo4ZRkMdqXuxNlNAbKfIUsYOKGrj5YauVc7jwyQEGXA4KuVgB+vcsBRb3R/F55epgFcC+zJql+zYC668uHv4yQLjRb8/hNiFD7i+7c6wE5M9qHtYJjg1TDHbkvVNZITS15k17+/0TmFdfFKIw1xBm3ror7m01nyeOI4yCAsNPRNqaFuyZsTVi64HBEssBKGdU/QnCx2VjkDGqq5UapGQqT9oklVHKhUNnF5oO7Prnh2zVPsst8GnvTYliDVUzMnCUh8jmG+W+W21JLP4WviPxzmxXYwa0buOm3r6U24o3tMoDdVmIisq5M9JdbMKJe1/8ChfEVJXeRET7YMDQiVcGj4qRJZk4pyTsm8flWe5jSOUCL8/TbP2zoX/DC7S/MLRTT0GPEsAmZvPoNrrx53+KMnE+xUMLSn+vMqdH6xiduTCK5e6JZwBBpFk2+mR83+B3klcHYRCr5cv/eronM6j8hLJbc54/hwca4xwMlLuH0sZjYMICMr7OIs9HpzEDs2KIBjF/0do1AkoerlLmnGrAapA/iqeUq5m5plluswkfRMqqbsJvkfL7C32GYX/5cldDGkmq8ZRLAyI3mcN+o2aCa3c2V2W/HnZN0xfFwI7bv3TtYlolD1Yig+MxVUtX1dBPD9WzLWBxHXyA/hTXwe1wAHJ3dKZ6KJDd3Rg+9D933ql+z7NsnalNz+thFUUMJ0EOGgFnqZyk/oT4ylmSxhpkVt5cZoNhwX1CTAWTOc+lHO4niN3jaDNZaTS2fue0im1wjES701RhEwVQA4W9j8BRsjSOVHdla7GnsU+SSb5qK6WmfNUGaq2xZ49iXXJXu0OjV/NtexatIiAdbEK/PDTX1MWBHESomR6UdvCvRxHCUQACfpS4vLT4QJurGPsneBrwjrMy8plJjYWGFPj76WDPRngBd7EC+Y2cQAFupp2oqWOLbk4j3S+qUkeujwQWeh2l1cdIYwTY5oVIqXSs86t/dBGjaT0jOcP1p41UZ+szl44uWqhIOdKAddFjlYHSKMadfs8UTKYP2CSEfAIENfGt9BH1IuSL53e2UYHYQEngQ+s6axArlal2sSyhzU1lHhxGzv86x/IwRd4DkAj27UgaJHg3+fFnRphtQL1B9t/5NsAOfjSgzBJjUnhTqWMaz7/hJ7osxpweUsgaqE3snPdOjae554XjuG7aBU7Li0votCHFzC9/7UtGnPvsXPXoWbexMPJn7O4AqEnH6R5VU8cGoeLvprRnewVd5CP8pB2AQKHf84Djzl8ZrYAwGibSnZzDKeyOLKTCq6C/Iq3bVGLknU92SJLNnysVtoUewbU1vRka0RxnWz1pUyLM7vfRNZLwsRRZvbOeNIRwIkm8wRZpCy2qVzNZK18JJwGskZBHmZP+r2VTU0QeQEk/kcq/tslRUPbYrY/VWUJlKyrUw/koOXimZspjojgoiJGC37cxev5ZojrnUFS6c8cOSKcpt/eN9IJwaeWpSwRZ0FY707AkhWhmA== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: YiC3AhhM53l53TkZ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SkRnW4Q+RZwSfOF0tCzUw/XFXSItaff6Yp7mjxysMCvQZkEdH1JvdUqc4rUQC1YCLAkXcRTd1J14vgjnhnEAvdCeCEhlr+69aBkSRG8MPHg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7f6db8b-8381-4c07-f868-08db76605963 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2023 16:13:59.2664 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xfM8WtsCsCSB+qu7wsbFaezIbb6qzZeR7yYJmeCezCL7IBxbJT/pitP+e8ByJHcOHXS3TeAsE0I8vNiHJ58wmcac1OSndvu/eRxAQvy6QqE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB7440 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-26_14,2023-06-26_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306260148 X-Proofpoint-ORIG-GUID: Vi0d-7_eVBEOZGzcRFGVp9mnoxH-lON8 X-Proofpoint-GUID: Vi0d-7_eVBEOZGzcRFGVp9mnoxH-lON8 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769783314457785705?= X-GMAIL-MSGID: =?utf-8?q?1769783314457785705?= The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/loongarch/Kconfig | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index d38b066fc931..3542bf669c78 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -481,28 +481,16 @@ config ARCH_STRICT_ALIGN to run kernel only on systems with h/w unaligned access support in order to optimise for performance. -config KEXEC - bool "Kexec system call" - select KEXEC_CORE - help - kexec is a system call that implements the ability to shutdown your - current kernel, and to start another kernel. It is like a reboot - but it is independent of the system firmware. And like a reboot - you can start any kernel with it, not just Linux. +config ARCH_SUPPORTS_KEXEC + def_bool y - The name comes from the similarity to the exec system call. +config ARCH_SUPPORTS_CRASH_DUMP + def_bool y -config CRASH_DUMP - bool "Build kdump crash kernel" +config ARCH_SELECTS_CRASH_DUMP + def_bool y + depends on CRASH_DUMP select RELOCATABLE - help - Generate crash dump after being started by kexec. This should - be normally only set in special crash dump kernels which are - loaded in the main kernel with kexec-tools into a specially - reserved region and then later executed after a crash by - kdump/kexec. - - For more details see Documentation/admin-guide/kdump/kdump.rst config RELOCATABLE bool "Relocatable kernel"