]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 29 Nov 2017 08:21:45 +0000 (11:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:06:45 +0000 (13:06 +0200)
commit05f7daf5b3a337495296bcd4d05f93c8421e5f24
tree9e976481875f5e2f3cbd520e700ba45353bb6cb3
parentb6232082cf400059dcfe21648538ba5f8cd10a75
ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP

[ Upstream commit 2f24ef7413a4d91657ef04e77c27ce0b313e6c95 ]

machine_desc->init_per_cpu() hook is supposed to be per cpu
initialization and would seem to apply  equally to UP and/or SMP.
Infact the comment in header file seems to suggest it works for
UP too, which was not the case and this patch.

This enables !CONFIG_SMP build for platforms such as hsdk.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[vgupta: trimmeed changelog]
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/include/asm/mach_desc.h
arch/arc/kernel/irq.c