diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2012-05-16 12:51:22 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-07-16 19:05:48 -0500 |
| commit | 3bba9a3ff18b6991bba4247898f4c26fa944a676 (patch) | |
| tree | da3462c53eaf0670670b37f094c17444f1ce5c4c /src/usr/testcore/lib | |
| parent | 2aa5e0afac73384aaabe1fe1529898601be1155f (diff) | |
| download | talos-hostboot-3bba9a3ff18b6991bba4247898f4c26fa944a676.tar.gz talos-hostboot-3bba9a3ff18b6991bba4247898f4c26fa944a676.zip | |
Support for core_activate via IPI.
RTC: 37009
Change-Id: I56669805c86d9659a20ad7c26e5e9860c7a248c7
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1087
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/testcore/lib')
| -rw-r--r-- | src/usr/testcore/lib/time.H | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/src/usr/testcore/lib/time.H b/src/usr/testcore/lib/time.H index 895d2884e..0eb090ae4 100644 --- a/src/usr/testcore/lib/time.H +++ b/src/usr/testcore/lib/time.H @@ -1,31 +1,32 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/usr/testcore/lib/time.H $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 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 - +/* IBM_PROLOG_BEGIN_TAG + * This is an automatically generated prolog. + * + * $Source: src/usr/testcore/lib/time.H $ + * + * IBM CONFIDENTIAL + * + * COPYRIGHT International Business Machines Corp. 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 __TESTCORE_LIB_TIME_H #define __TESTCORE_LIB_TIME_H #include <time.h> #include <sys/time.h> +#include <sys/task.h> #include <errno.h> /** @file time.H @@ -40,6 +41,12 @@ class TimeTest : public CxxTest::TestSuite */ void testClockGetTime() { + task_affinity_pin(); // TODO: Bug in PHYP start-cores code that + // does not sync timebase register, so + // we need to pin ourselves to a core + // while doing timebase testing. + // RTC: 42921 + timespec_t first, second; if (-EINVAL != clock_gettime(CLOCK_REALTIME, &first)) @@ -64,6 +71,8 @@ class TimeTest : public CxxTest::TestSuite { TS_FAIL("Monotonic clock is not increasing."); } + + task_affinity_unpin(); // TODO. } }; |

