Commit 6320e807 authored by Marius Tillner's avatar Marius Tillner

added init_latseq and close_latseq to nr-softmodem.c

parent e1c5d144
...@@ -80,6 +80,7 @@ unsigned short config_frames[4] = {2,9,11,13}; ...@@ -80,6 +80,7 @@ unsigned short config_frames[4] = {2,9,11,13};
#include "gnb_paramdef.h" #include "gnb_paramdef.h"
#include <openair3/ocp-gtpu/gtp_itf.h> #include <openair3/ocp-gtpu/gtp_itf.h>
#include "nfapi/oai_integration/vendor_ext.h" #include "nfapi/oai_integration/vendor_ext.h"
#include "common/utils/LATSEQ/latseq.h"
pthread_cond_t nfapi_sync_cond; pthread_cond_t nfapi_sync_cond;
pthread_mutex_t nfapi_sync_mutex; pthread_mutex_t nfapi_sync_mutex;
...@@ -620,6 +621,7 @@ int main( int argc, char **argv ) { ...@@ -620,6 +621,7 @@ int main( int argc, char **argv ) {
printf("NFAPI MODE:%s\n", nfapi_mode_str); printf("NFAPI MODE:%s\n", nfapi_mode_str);
init_latseq("/tmp/latseq", (uint64_t)(cpuf*1000000000LL));
printf("START MAIN THREADS\n"); printf("START MAIN THREADS\n");
// start the main threads // start the main threads
number_of_cards = 1; number_of_cards = 1;
...@@ -695,6 +697,7 @@ int main( int argc, char **argv ) { ...@@ -695,6 +697,7 @@ int main( int argc, char **argv ) {
printf("Returned from ITTI signal handler\n"); printf("Returned from ITTI signal handler\n");
oai_exit=1; oai_exit=1;
printf("oai_exit=%d\n",oai_exit); printf("oai_exit=%d\n",oai_exit);
close_latseq(); //close before end of threads
// cleanup // cleanup
if (RC.nb_nr_L1_inst > 0) if (RC.nb_nr_L1_inst > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment