summaryrefslogtreecommitdiff
path: root/drivers/xen/xen-acpi-cpuhotplug.c
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2015-05-11 07:17:13 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-14 00:28:14 +0300
commit25956b6612601cf36022392ffa83f6bf97939bcd (patch)
treef3b8efbce1c45c7ccf5796e38046f13477d22a76 /drivers/xen/xen-acpi-cpuhotplug.c
parent030bbdbf4c833bc69f502eae58498bc5572db736 (diff)
downloadlinux-25956b6612601cf36022392ffa83f6bf97939bcd.tar.xz
ACPI / processor: Introduce invalid_logical_cpuid()
In ACPI processor drivers, we use direct comparisons of cpu logical id with -1 which are error prone in case logical cpuid is accidentally assinged an error code and prevents us from returning an error-encoding cpuid directly in some cases. So introduce invalid_logical_cpuid() to identify cpu with invalid logical cpu num, then it will be used to replace the direct comparisons with -1. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/xen/xen-acpi-cpuhotplug.c')
0 files changed, 0 insertions, 0 deletions