summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-pthread-attr-setaffinity-np.c
blob: fdada5e8d454c549e4cb57059f52ebb8a1825c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdint.h>
#include <pthread.h>
#include <sched.h>

int main(void)
{
	int ret = 0;
	pthread_attr_t thread_attr;
	cpu_set_t cs;

	pthread_attr_init(&thread_attr);
	CPU_ZERO(&cs);

	ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs);

	return ret;
}
itterLinus Torvalds <torvalds@linux-foundation.org>2017-01-22 12:47:48 -0800 commit095cbe66973771fecd8e8b1e8763181363ef703e (patch) treec361a93d62ed171ac958deb0d4ff0faa980bb290 /drivers/usb/renesas_usbhs/common.c parent24b86839fab8e8059d2b16e0067dc86a1a0d3514 (diff)parent020eb3daaba2857b32c4cf4c82f503d6a00a67de (diff)
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Thomas Gleixner: "Restore the retrigger callbacks in the IO APIC irq chips. That addresses a long standing regression which got introduced with the rewrite of the x86 irq subsystem two years ago and went unnoticed so far" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/ioapic: Restore IO-APIC irq_chip retrigger callback
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')