summaryrefslogtreecommitdiffstats
path: root/src/include/sys/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/sys/time.h')
-rw-r--r--src/include/sys/time.h50
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
OpenPOWER on IntegriCloud