From e2cb0a90da41a7651bff2586012c378da197f973 Mon Sep 17 00:00:00 2001 From: frtabu Date: Thu, 6 May 2021 08:33:07 +0200 Subject: [PATCH] ne cpu measurment implementation --- openair1/PHY/TOOLS/time_meas.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openair1/PHY/TOOLS/time_meas.c b/openair1/PHY/TOOLS/time_meas.c index 02c7803075..a034187ca6 100644 --- a/openair1/PHY/TOOLS/time_meas.c +++ b/openair1/PHY/TOOLS/time_meas.c @@ -191,6 +191,17 @@ void run_cpumeasur(void) { } +void run_cpumeasur(void) { + struct sched_param schedp; + pthread_setname_np(pthread_self(), "measur"); + schedp.sched_priority=0; + int rt=pthread_setschedparam(pthread_self(), SCHED_IDLE, &schedp); + AssertFatal(rt==0, "couldn't set measur thread priority: %s\n",strerror(errno)); + initNotifiedFIFO(&measur_fifo); + while(1) { + } +} + void init_meas(void) { pthread_t thid;