summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-timerfd.c
blob: 8c5c083b4d3caadf8bc92b82910a261f3f91a16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * test for timerfd functions used by perf-kvm-stat-live
 */
#include <sys/timerfd.h>

int main(void)
{
	struct itimerspec new_value;

	int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
	if (fd < 0)
		return 1;

	if (timerfd_settime(fd, 0, &new_value, NULL) != 0)
		return 1;

	return 0;
}
x/net-next.git/commit/include/uapi/scsi/fc/fc_els.h?id=4e5b54f127426c82dc2816340c26d951a5bb3429'>4e5b54f127426c82dc2816340c26d951a5bb3429 (patch) treecc3a8f7e335cf12880bc8d1a1e2066f6cfe0a68e /include/uapi/scsi/fc/fc_els.h parent566cf877a1fcb6d6dc0126b076aad062054c2637 (diff)
drm: prevent double-(un)registration for connectors
If we're unlucky then the registration from a hotplugged connector might race with the final registration step on driver load. And since MST topology discover is asynchronous that's even somewhat likely. v2: Also update the kerneldoc for @registered! v3: Review from Chris: - Improve kerneldoc for late_register/early_unregister callbacks. - Use mutex_destroy. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Sean Paul <seanpaul@chromium.org> Reported-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161218133545.2106-1-daniel.vetter@ffwll.ch (cherry picked from commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e)
Diffstat (limited to 'include/uapi/scsi/fc/fc_els.h')