Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1379077

Re: [PATCH] arm64: Kconfig: make SCHED_MC and SCHED_SMT depend on SMP

From Will Deacon <will.deacon@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: Kconfig: make SCHED_MC and SCHED_SMT depend on SMP
Date 2016-04-14 18:40 +0200
Message-ID <rnStc-4TB-13@gated-at.bofh.it> (permalink)
References <rnE6S-1XS-5@gated-at.bofh.it> <rnL8l-7nM-1@gated-at.bofh.it> <rnStc-4TB-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Apr 14, 2016 at 09:33:07AM -0700, Shi, Yang wrote:
> On 4/14/2016 1:47 AM, Will Deacon wrote:
> >On Wed, Apr 13, 2016 at 05:54:12PM -0700, Yang Shi wrote:
> >>SCHED_MC and SCHED_SMT are pointless when SMP is disabled.
> >>Although SMP is rarely disabled for ARM64, it looks more consistent to have
> >>such depend in Kconfig.
> >
> >You can't disable CONFIG_SMP for arm64 -- we select it unconditionally
> >in the kconfig.
> 
> Thanks Will. I didn't realize ARM64 has SMP selected unconditionally, it
> looks the patch is pointless.
> 
> A follow-up question, I know ARM64 has no UP implementation now, it sounds
> make sense to have SMP select unconditionally, however, it might be more
> flexible to have SMP like x86 and other architectures. And, it may also help
> to find more bugs when !SMP.

Well, an SMP kernel would still work on a UP implementation, so I don't
really see the point in carrying a whole load of barely tested #ifdef
code. Top that off with the fact that we still need shareable memory for
coherent DMA and we still need barrier instructions for the page table
walker, and it's really diminishing returns.

Will

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] arm64: Kconfig: make SCHED_MC and SCHED_SMT depend on SMP Yang Shi <yang.shi@linaro.org> - 2016-04-14 03:20 +0200
  Re: [PATCH] arm64: Kconfig: make SCHED_MC and SCHED_SMT depend on SMP Will Deacon <will.deacon@arm.com> - 2016-04-14 10:50 +0200
    Re: [PATCH] arm64: Kconfig: make SCHED_MC and SCHED_SMT depend on SMP Will Deacon <will.deacon@arm.com> - 2016-04-14 18:40 +0200
    Re: [PATCH] arm64: Kconfig: make SCHED_MC and SCHED_SMT depend on SMP "Shi, Yang" <yang.shi@linaro.org> - 2016-04-14 18:40 +0200

csiph-web