Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932521AbaFPV6t (ORCPT ); Mon, 16 Jun 2014 17:58:49 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:45930 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbaFPV6r (ORCPT ); Mon, 16 Jun 2014 17:58:47 -0400 From: David Riley To: Thomas Gleixner Cc: John Stultz , Doug Anderson , linux-kernel@vger.kernel.org, David Riley Subject: [PATCH v4 0/2] Add test to validate udelay Date: Mon, 16 Jun 2014 14:58:31 -0700 Message-Id: <1402955913-25036-1-git-send-email-davidriley@chromium.org> X-Mailer: git-send-email 2.0.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This change adds a module and a script that makes use of it to validate that udelay delays for at least as long as requested (as compared to ktime). Changes since v1: - allow udelay() to be 0.5% faster than requested as per feedback Changes since v2: - fix permissions on udelay_test.sh script - update commit message to indicate what this test targets - fixed checkpatch whitespace error - rebased Changes since v3: - fixed xtensa compile warning (and other 32-bit platforms which use the generic do_div) - renamed and moved config option David Riley (2): kernel: time: Add udelay_test module to validate udelay tools: add script to test udelay kernel/time/Makefile | 1 + kernel/time/udelay_test.c | 168 ++++++++++++++++++++++++++++++++++++++++++++++ lib/Kconfig.debug | 9 +++ tools/time/udelay_test.sh | 66 ++++++++++++++++++ 4 files changed, 244 insertions(+) create mode 100644 kernel/time/udelay_test.c create mode 100755 tools/time/udelay_test.sh -- 2.0.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/