Skip to content
Snippets Groups Projects
Commit e2cb0a90 authored by frtabu's avatar frtabu
Browse files

ne cpu measurment implementation

parent 40fcd549
No related branches found
No related tags found
5 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1493fix DL arq errors in UE,!1291Integration 2021 wk42 b,!1290WIP: integration_2021_wk42,!1225Cleanup and first step to enhance cpu measurments
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment