Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 12:46:28 +0200
From:      Sebastian Huber <sebastian.huber@embedded-brains.de>
To:        FreeBSD <freebsd-hackers@freebsd.org>
Subject:   Re: epoch(9) background information?
Message-ID:  <abd1ae3c-658a-d3ce-8b9e-fcdde0a5a2d6@embedded-brains.de>
In-Reply-To: <db397431-2c4c-64de-634a-20f38ce6a60e@embedded-brains.de>
References:  <db397431-2c4c-64de-634a-20f38ce6a60e@embedded-brains.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

I ported the epoch API to RTEMS. You can find the implementation here:

https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/include/sys/epoch.h
https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-kernel-epoch=
.c

I tested it also on low end uniprocessor targets and it works fine, e.g.

* Microchip ATSAM V71 (ARMv7-M)
* NXP MCF548x (ColdFire)
* NXP MPC860 (PowerPC 32-bit)

I tested it also on a 24-core T4240. It scales pretty well. See also:

https://git.rtems.org/rtems-libbsd/tree/testsuite/epoch01/test_main.c

If someone has ideas for good test cases, then please let me know.

I modified the CK a bit to better support RTEMS targets:

https://git.rtems.org/rtems-libbsd/commit/?id=3Dbaf1ca76290f43e054e5182c1=
47ca332cb59890f
https://git.rtems.org/rtems-libbsd/commit/?id=3D3becda1fef854cbe39e462a17=
74b860e1455c8ef
https://git.rtems.org/rtems-libbsd/commit/?id=3D1af372a5eeaba3115f139e4ef=
c0204e2cd7208bb
https://git.rtems.org/rtems-libbsd/commit/?id=3Dbe6515d2c1086c76ee965c630=
0cc5873c76afab9

--=20
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG=
.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?abd1ae3c-658a-d3ce-8b9e-fcdde0a5a2d6>