diff options
author | hunt <hunt> | 2007-05-30 14:33:55 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-05-30 14:33:55 +0000 |
commit | 79e80fedc4bcac4cd1d5a684537f20a4331efd4e (patch) | |
tree | accd5d9105d2438ae2f0171ee3d3813de1b25f11 /runtime/time.c | |
parent | 2cbe17e95de653099901e34124ab1a376e150514 (diff) | |
download | systemtap-steved-79e80fedc4bcac4cd1d5a684537f20a4331efd4e.tar.gz systemtap-steved-79e80fedc4bcac4cd1d5a684537f20a4331efd4e.tar.xz systemtap-steved-79e80fedc4bcac4cd1d5a684537f20a4331efd4e.zip |
2007-05-30 Martin Hunt <hunt@redhat.com>
Patch from Quentin Barnes.
* arith.c: Add arm support for 64-bit division.
* copy.c: Enable arm support.
* loc2c-runtime.h: Ditto.
* regs.[ch]: Ditto.
* stack.c: Include stack-arm.c.
* stack-arm.c: New file.
* time.c (_stp_gettimeofday_ns): hack
for arm. See PR 4569.
Diffstat (limited to 'runtime/time.c')
-rw-r--r-- | runtime/time.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/time.c b/runtime/time.c index 657b5e8c..275fd98d 100644 --- a/runtime/time.c +++ b/runtime/time.c @@ -61,7 +61,7 @@ int stp_timer_reregister = 0; static unsigned int __stp_estimate_cpufreq(void) { -#if defined (__s390__) || defined (__s390x__) +#if defined (__s390__) || defined (__s390x__) || defined (__arm__) // We don't need to find the cpu freq on s390 as the // TOD clock is always a fix freq. (see: POO pg 4-36.) return 0; @@ -255,6 +255,12 @@ _stp_gettimeofday_ns(void) delta = (delta * 125) >> 7; +#elif defined (__arm__) + + /* arm always returns 0 for get_cycles() */ + /* so this is just a fake value until we get a real fix. */ + delta = 1000; + #else /* __s390__ || __s390x__ */ // Verify units: |