hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/timers/freq-step.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * This test checks the response of the system clock to frequency
34 * steps made with adjtimex(). The frequency error and stability of
....@@ -6,15 +7,6 @@
67 * values from the second interval exceed specified limits.
78 *
89 * Copyright (C) Miroslav Lichvar <mlichvar@redhat.com> 2017
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of version 2 of the GNU General Public License as
12
- * published by the Free Software Foundation.
13
- *
14
- * This program is distributed in the hope that it will be useful, but
15
- * WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * General Public License for more details.
1810 */
1911
2012 #include <math.h>
....@@ -29,9 +21,9 @@
2921 #define SAMPLE_READINGS 10
3022 #define MEAN_SAMPLE_INTERVAL 0.1
3123 #define STEP_INTERVAL 1.0
32
-#define MAX_PRECISION 100e-9
33
-#define MAX_FREQ_ERROR 10e-6
34
-#define MAX_STDDEV 1000e-9
24
+#define MAX_PRECISION 500e-9
25
+#define MAX_FREQ_ERROR 0.02e-6
26
+#define MAX_STDDEV 50e-9
3527
3628 #ifndef ADJ_SETOFFSET
3729 #define ADJ_SETOFFSET 0x0100