From patchwork Tue Nov 12 16:01:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 179224 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp8312976ilf; Tue, 12 Nov 2019 08:01:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzeK2qBlI3BRsA+xoi9cgLUFaPeq2RY1uwF+HVh5OcI7CzK4hobG92htpkZvPY4epi4QaTr X-Received: by 2002:a05:6402:547:: with SMTP id i7mr5112307edx.55.1573574518498; Tue, 12 Nov 2019 08:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573574518; cv=none; d=google.com; s=arc-20160816; b=hT2JZPBcJ6altuU9hp+Z/A/N9Xp/A36jTtWyocKUfyiFvJN/umxguRCNeHKmQL3TBq EAkwcuUA/POMLkoMEe5LVdD67bnhpyO8I4HgHfsMzYP5FrhIrNzBrHr7YR283WN2fRCl sbyS7YBnUJJ+kuwfN1SW/m+mml8RgJRPEeCoXcu95Wd672YR/HcDrYfUPq6SNy0m/B05 p+JfkrOAgQtcXXW6NuQP0KetkMiTItvgcfJ64jt3E71P6Y+qbAgpwQ+EbZXJBULPznoT OAvNUpsyYUubRZNAnIc3oI8p0zSK7fqOHhTNitBNnLpS5+BTbvsF96Ws4L6sStIlkbNP NupQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4kdtfZv1UWGs4z6mZX1Xj2hNLNvOhEkV9MFCDyUM5WY=; b=mFM6zwOs6lXCZ/IVp5SIDjffdajMdJ5XUnS0c3/UxXnF2yg7UJ//43GKu95gXqaTIo sAEgV6XFSDp3eytZjj//qNPZWnpLJCsQiTjbM4Qos8EORG5SRqq4jUwiSoTj6YbtFAcS sx34HBfv4INSOvajap11N8tpo22pXMCMQo4yjB3SpErSEdA7uwqz/B/PaXTtv848gMZI MtaP/MF5NkQ+YkyGLd0vWXNOrqrwDjS7SWJFDwgziob6YZiGpi2xWom/lykMKycxR6YZ piGnKLsyvW7UgIvOi9kC0bvEyBO/BC9vsj5e0wdAfI26xHFit3RhF+ZDJM48J7/uIVsG iqGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vb1PBepH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nf6si222768ejb.406.2019.11.12.08.01.57; Tue, 12 Nov 2019 08:01:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vb1PBepH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfKLQB4 (ORCPT + 26 others); Tue, 12 Nov 2019 11:01:56 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:41600 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfKLQBz (ORCPT ); Tue, 12 Nov 2019 11:01:55 -0500 Received: by mail-lj1-f194.google.com with SMTP id d22so6879131lji.8 for ; Tue, 12 Nov 2019 08:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4kdtfZv1UWGs4z6mZX1Xj2hNLNvOhEkV9MFCDyUM5WY=; b=Vb1PBepHxX3U8dmOFv17pjejpZizz7XnsepoMKFySZxszgEZoBT3aII0a7WvybC8EL jn7pvOgzymp7/xN46tuKOiNL33sfWFhTAO4NnVtdbeKd3DZ4+Kjbomt31ocY6v3PulLZ w7HFQPiV8MZ5oulC2anS8lGnKusuGZme/ldc3KmWuaRIMYfFsww/O9yoa69voPa7ssJx 0wZoZvJPD/2JYo0UQDTUV94lukvVKDeUMyq4d1f6ByiaFyGbcQwzlKgBk58jMNjSBcCL dsBjjId+R+R7t7dghP0ljBOMGWvWVY78IKWcPH38+OtyjyB1eAvNqsUvjM2XsROzJmVS 2KSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4kdtfZv1UWGs4z6mZX1Xj2hNLNvOhEkV9MFCDyUM5WY=; b=AR+VmLKD56qzaFohnoVuv2cg29kKg8ZsXngFdCmkEtDlck/Vgf680iG7B4jaOL40bm 9TPrn0kpN22ESAIbkemHLkFLqcQr7JJNbS+hYpwNfhVME6hAIGZfHlJLwIvqPQzJo+VD UNQe0EcfK3jcuq+UW9wzxrZBHmpnPEWXQQVdytnJLzdeE4lLKRwy/RL8BXKO0tW9jb6h 2Qib5KzAPtr8g5rgrHhmVC0wGZfx1bBlcmbU8D3irwevPM5qHvcuDRGgif4acai74XV3 E4qUfa6pkNMdYgrprgOCmP97kkx3dncEudJzMAWLuzOwOnOu7Ksvq/KaWF5cO+lpdM5K kkGw== X-Gm-Message-State: APjAAAX/2PR4EoF2pV3iZVvejT1omIkTCiY3eQaHy5QOSCSw/eL/r82v ngSH13x+6oVw5GacnEbLXtfM3w== X-Received: by 2002:a05:651c:1025:: with SMTP id w5mr9990594ljm.68.1573574513469; Tue, 12 Nov 2019 08:01:53 -0800 (PST) Received: from localhost (c-413e70d5.07-21-73746f28.bbcust.telenor.se. [213.112.62.65]) by smtp.gmail.com with ESMTPSA id v21sm8394109lfe.68.2019.11.12.08.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 08:01:52 -0800 (PST) From: Anders Roxell To: catalin.marinas@arm.com Cc: will@kernel.org, john.garry@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] arm64: Kconfig: add a choice for endianess Date: Tue, 12 Nov 2019 17:01:44 +0100 Message-Id: <20191112160144.8357-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig CONFIG_CPU_BIG_ENDIAN gets enabled. Which tends not to be what most people wants. Another concern that thas come up is that ACPI in't built for an allmodconfig kernel today since that also depends on !CPU_BIG_ENDIAN. Rework so that we introduce a 'choice' and default the choice to CPU_LITTLE_ENDIAN. That means that when we build an allmodconfig kernel it will default to CPU_LITTLE_ENDIAN that most people tends to want. Signed-off-by: Anders Roxell --- arch/arm64/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.20.1 Reviewed-by: John Garry diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 64764ca92fca..62f83c234a61 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -877,11 +877,24 @@ config ARM64_PA_BITS default 48 if ARM64_PA_BITS_48 default 52 if ARM64_PA_BITS_52 +choice + prompt "Endianess" + default CPU_LITTLE_ENDIAN + help + Choose what mode you plan on running your kernel in. + config CPU_BIG_ENDIAN bool "Build big-endian kernel" help Say Y if you plan on running a kernel in big-endian mode. +config CPU_LITTLE_ENDIAN + bool "Build little-endian kernel" + help + Say Y if you plan on running a kernel in little-endian mode. + +endchoice + config SCHED_MC bool "Multi-core scheduler support" help