[bootlin/training-materials updates] master: Real-time lab: minor improvement to rttest.c code comments (a6480fe0)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:38 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/a6480fe0f399985acbba1ac809eb43f9105ebde4

>---------------------------------------------------------------

commit a6480fe0f399985acbba1ac809eb43f9105ebde4
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu May 20 18:26:27 2021 +0200

    Real-time lab: minor improvement to rttest.c code comments
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

a6480fe0f399985acbba1ac809eb43f9105ebde4
 lab-data/embedded-linux/realtime/data/rttest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lab-data/embedded-linux/realtime/data/rttest.c b/lab-data/embedded-linux/realtime/data/rttest.c
index 405d169b..fb0740f9 100644
--- a/lab-data/embedded-linux/realtime/data/rttest.c
+++ b/lab-data/embedded-linux/realtime/data/rttest.c
@@ -63,13 +63,13 @@ int main (void)
 		/* Get the date before sleeping */
 		clock_gettime(CLOCK_MONOTONIC, &time1);
 
-		/* Compute the wake-up date */
+		/* Compute the expected wake-up date */
 		timespec_add_ns(&time1, 100000);
 
 		/* Sleep */
 		clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &time1, NULL);
 
-		/* Get the wake-up date */
+		/* Get the actual wake-up date */
 		clock_gettime(CLOCK_MONOTONIC, &time2);
 
 		/* skip the first second for warmup */




More information about the training-materials-updates mailing list