aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-13 02:39:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-12 17:43:49 -0700
commitc7991b0b720efa5e0a590f6359d36e09bd187b76 (patch)
treef601b37ad472f0818c06e18fd9fa5a4d40d702bd /drivers/devfreq/devfreq.c
parentCorrect unfaithful translation on HOWTO in ko_KR (diff)
downloadlinux-dev-c7991b0b720efa5e0a590f6359d36e09bd187b76.tar.xz
linux-dev-c7991b0b720efa5e0a590f6359d36e09bd187b76.zip
driver core / cpu: Check if NUMA node is valid before bringing CPU up
There is a potential race condition between cpu_subsys_online() and either acpi_processor_remove() or remove_memory() that execute try_offline_node(). Namely, it is possible that cpu_subsys_online() will run right after the CPUs NUMA node has been put offline and cpu_to_node() executed by it will return NUMA_NO_NODE (-1). In that case the CPU is gone and it doesn't make sense to call cpu_up() for it, so make cpu_subsys_online() return -ENODEV then. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Toshi Kani <toshi.kani@hp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
0 files changed, 0 insertions, 0 deletions