curvetun-libs = -lnacl \ -lpthread curvetun-objs = xmalloc.o \ xio.o \ xutils.o \ stun.o \ patricia.o \ trie.o \ hash.o \ curve.o \ cpusched.o \ ct_usermgmt.o \ ct_servmgmt.o \ ct_server.o \ ct_client.o \ curvetun.o tle='Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2016-06-01 18:52:16 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-02 23:05:27 +0200
commit9bd616e3dbedfc103f158197c8ad93678849b1ed (patch)
treebcd47c1dba1e764ae3263f7bb30002e1656f88b5
parente7387da52028b072489c45efeb7a916c0205ebd2 (diff)
cpuidle: Do not access cpuidle_devices when !CONFIG_CPU_IDLE
The cpuidle_devices per-CPU variable is only defined when CPU_IDLE is enabled. Commit c8cc7d4de7a4 ("sched/idle: Reorganize the idle loop") removed the #ifdef CONFIG_CPU_IDLE around cpuidle_idle_call() with the compiler optimising away __this_cpu_read(cpuidle_devices). However, with CONFIG_UBSAN && !CONFIG_CPU_IDLE, this optimisation no longer happens and the kernel fails to link since cpuidle_devices is not defined. This patch introduces an accessor function for the current CPU cpuidle device (returning NULL when !CONFIG_CPU_IDLE) and uses it in cpuidle_idle_call(). Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Cc: 4.5+ <stable@vger.kernel.org> # 4.5+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>