https://github.com/torvalds/linux
Revision 74559c69e8cdc3ad60bdb0fa88d77acc22342568 authored by Lianwei Wang on 20 April 2016, 06:36:20 UTC, committed by Lianwei Wang on 21 May 2016, 06:12:14 UTC
Currently it just print a warning message but did not
reset cpu_hotplug_disabled when the enable/disable is
unbalanced. The unbalanced enable/disable will lead
the cpu hotplug work abnormally.

Do nothing if an unablanced hotplug enable detected.

Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
1 parent 2f37dd1
Raw File
Tip revision: 74559c69e8cdc3ad60bdb0fa88d77acc22342568 authored by Lianwei Wang on 20 April 2016, 06:36:20 UTC
cpu/hotplug: handle unbalanced hotplug enable/disable
Tip revision: 74559c6
gcc-goto.sh
#!/bin/sh
# Test for gcc 'asm goto' support
# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>

cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
int main(void)
{
#if defined(__arm__) || defined(__aarch64__)
	/*
	 * Not related to asm goto, but used by jump label
	 * and broken on some ARM GCC versions (see GCC Bug 48637).
	 */
	static struct { int dummy; int state; } tp;
	asm (".long %c0" :: "i" (&tp.state));
#endif

entry:
	asm goto ("" :::: entry);
	return 0;
}
END
back to top