/* * Copyright 2015, Anton Blanchard, IBM Corp. * Licensed under GPLv2. */ #include #include #include "utils.h" static int test_gettimeofday(void) { int i; struct timeval tv_start, tv_end; gettimeofday(&tv_start, NULL); for(i = 0; i < 100000000; i++) { gettimeofday(&tv_end, NULL); } printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + (tv_end.tv_usec - tv_start.tv_usec) * 1e-6); return 0; } int main(void) { return test_harness(test_gettimeofday, "gettimeofday"); } Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 15:11:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 15:11:04 -0800
commitf7d6040aa45df6ffd9e891114125dc919f18b96b (patch)
treeb20fed8e63bf327d6521923851a96ba080c48ce5 /drivers/usb/misc/Kconfig
parent50dcb6cdb70281d76b28d1564f8e076bb08f2c60 (diff)
parentcbf304e420da96992eae50bb6d51035681340ab8 (diff)
Merge tag 'pm-4.10-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fixes from Rafael Wysocki: "These add a quirk to intel_pstate to work around a firmware setting that leads to frequency scaling issues (discovered recently) on some Intel Kaby Lake processors, fix up the recently added brcmstb-avs cpufreq driver and avoid false-positive warnings from the runtime PM framework triggered by recent changes in i915. Specifics: - Add an intel_pstate driver quirk to work around a firmware setting that leads to frequency scaling issues on desktop Intel Kaby Lake processors in some configurations if the hardware-managed P-states (HWP) feature is in use (Srinivas Pandruvada) - Fix up the recently added brcmstb-avs cpufreq driver: fix a bug related to system suspend and change the sysfs interface to match the user space expectations (Markus Mayer) - Modify the runtime PM framework to avoid false-positive warnings from the might_sleep_if() assertions in it (Rafael Wysocki)" * tag 'pm-4.10-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM / runtime: Avoid false-positive warnings from might_sleep_if() cpufreq: intel_pstate: Disable energy efficiency optimization cpufreq: brcmstb-avs-cpufreq: properly retrieve P-state upon suspend cpufreq: brcmstb-avs-cpufreq: extend sysfs entry brcm_avs_pmap
Diffstat (limited to 'drivers/usb/misc/Kconfig')