| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This test checks the response of the system clock to frequency |
|---|
| 3 | 4 | * steps made with adjtimex(). The frequency error and stability of |
|---|
| .. | .. |
|---|
| 6 | 7 | * values from the second interval exceed specified limits. |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * 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. |
|---|
| 18 | 10 | */ |
|---|
| 19 | 11 | |
|---|
| 20 | 12 | #include <math.h> |
|---|
| .. | .. |
|---|
| 29 | 21 | #define SAMPLE_READINGS 10 |
|---|
| 30 | 22 | #define MEAN_SAMPLE_INTERVAL 0.1 |
|---|
| 31 | 23 | #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 |
|---|
| 35 | 27 | |
|---|
| 36 | 28 | #ifndef ADJ_SETOFFSET |
|---|
| 37 | 29 | #define ADJ_SETOFFSET 0x0100 |
|---|