diff options
author | Mike Jones <mjjones@us.ibm.com> | 2012-06-14 08:52:05 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-06-18 13:53:50 -0500 |
commit | dde4a31ff03884c1b1b1d605e9a13bf707f62faf (patch) | |
tree | 9e344c551c7c48363e3b5e2519db6592a8073834 /src/include/sys | |
parent | 319e5a9fa363aca6368445ce919a53202e70849b (diff) | |
download | talos-hostboot-dde4a31ff03884c1b1b1d605e9a13bf707f62faf.tar.gz talos-hostboot-dde4a31ff03884c1b1b1d605e9a13bf707f62faf.zip |
Fix time constants in sys/time.h
Change-Id: Id98582002c23504fbd7e2bfb31855d2e09724a51
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1201
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys')
-rw-r--r-- | src/include/sys/time.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/include/sys/time.h b/src/include/sys/time.h index 9541b2237..7f71b2623 100644 --- a/src/include/sys/time.h +++ b/src/include/sys/time.h @@ -1,25 +1,26 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/include/sys/time.h $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2010 - 2011 -// -// p1 -// -// Object Code Only (OCO) source materials -// Licensed Internal Code Source Materials -// IBM HostBoot Licensed Internal Code -// -// The source code for this program is not published or other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG + * This is an automatically generated prolog. + * + * $Source: src/include/sys/time.h $ + * + * IBM CONFIDENTIAL + * + * COPYRIGHT International Business Machines Corp. 2010-2012 + * + * p1 + * + * Object Code Only (OCO) source materials + * Licensed Internal Code Source Materials + * IBM HostBoot Licensed Internal Code + * + * The source code for this program is not published or other- + * wise divested of its trade secrets, irrespective of what has + * been deposited with the U.S. Copyright Office. + * + * Origin: 30 + * + * IBM_PROLOG_END_TAG + */ #ifndef __SYS_TIME_H #define __SYS_TIME_H @@ -33,7 +34,7 @@ /** * @brief Number of nanoseconds per second */ -#define NS_PER_SEC (1000000ull) +#define NS_PER_SEC (1000000000ull) /** * @brief Duration of one timeslice/context switch in nanoseconds @@ -44,8 +45,7 @@ * @brief Duration of ten context switches, in nanoseconds; used by testcases * to guarantee a secondary testcase task/thread will execute */ -#define TEN_CTX_SWITCHES_NS \ - ((NS_PER_SEC/TimeManager::TIMESLICE_PER_SEC)*ONE_CTX_SWITCH_NS) +#define TEN_CTX_SWITCHES_NS (ONE_CTX_SWITCH_NS * 10) //****************************************************************************** // Interface |