aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/powerpc/clock.c
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2017-12-31 09:24:41 +0000
committerColin Percival <cperciva@FreeBSD.org>2017-12-31 09:24:41 +0000
commitd5d7606c0c076237567d5fa706478c70a1189916 (patch)
treefd38db9736ff5060a4872c4093c39d295f8ddfd4 /sys/powerpc/powerpc/clock.c
parent49a4e3b4b45f8d1fac11d9ce659d9c9193d00e3f (diff)
downloadsrc-d5d7606c0c076237567d5fa706478c70a1189916.tar.gz
src-d5d7606c0c076237567d5fa706478c70a1189916.zip
Use the TSLOG framework to record entry/exit timestamps for DELAY and
_vprintf; these functions are called in many places and can contribute meaningfully to the total time spent booting.
Notes
Notes: svn path=/head/; revision=327432
Diffstat (limited to 'sys/powerpc/powerpc/clock.c')
-rw-r--r--sys/powerpc/powerpc/clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/powerpc/clock.c b/sys/powerpc/powerpc/clock.c
index 8dff4b61fc6d..62a0be553acb 100644
--- a/sys/powerpc/powerpc/clock.c
+++ b/sys/powerpc/powerpc/clock.c
@@ -305,9 +305,11 @@ DELAY(int n)
{
u_quad_t tb, ttb;
+ TSENTER();
tb = mftb();
ttb = tb + howmany(n * 1000, ns_per_tick);
while (tb < ttb)
tb = mftb();
+ TSEXIT();
}