Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1584966
| From | David Riley <davidriley@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] kernel: time: Modify test_udelay to allow for 1% tolerance. |
| Date | 2017-02-21 01:00 +0100 |
| Message-ID | <td626-2RA-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
test_udelay had a tolerance of udelay() being up to 0.5% fast but
that tolerance is insufficient for some platforms. For ARM, the error
is around 0.7% so increase the test to allow for up to 1% which was
previously described as being acceptable for udelay().
See the following thread for more details:
http://lists.openwall.net/linux-kernel/2011/01/12/372
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David Riley <davidriley@chromium.org>
---
kernel/time/test_udelay.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/time/test_udelay.c b/kernel/time/test_udelay.c
index b0928ab..5212925 100644
--- a/kernel/time/test_udelay.c
+++ b/kernel/time/test_udelay.c
@@ -39,8 +39,8 @@ static int udelay_test_single(struct seq_file *s, int usecs, uint32_t iters)
uint64_t sum = 0;
uint64_t avg;
int i;
- /* Allow udelay to be up to 0.5% fast */
- int allowed_error_ns = usecs * 5;
+ /* Allow udelay to be up to 1% fast */
+ int allowed_error_ns = usecs * 10;
for (i = 0; i < iters; ++i) {
s64 kt1, kt2;
--
2.2.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] kernel: time: Modify test_udelay to allow for 1% tolerance. David Riley <davidriley@chromium.org> - 2017-02-21 01:00 +0100 Re: [PATCH] kernel: time: Modify test_udelay to allow for 1% tolerance. Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-21 01:30 +0100
csiph-web