Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
94c74012
Commit
94c74012
authored
Oct 13, 2022
by
mir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove threads_t struct from the code
parent
ade2cf33
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
62 deletions
+0
-62
executables/nr-softmodem.h
executables/nr-softmodem.h
+0
-2
executables/threads_t.h
executables/threads_t.h
+0
-21
targets/COMMON/threads_t.h
targets/COMMON/threads_t.h
+0
-21
targets/RT/USER/lte-softmodem.h
targets/RT/USER/lte-softmodem.h
+0
-1
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+0
-17
No files found.
executables/nr-softmodem.h
View file @
94c74012
...
...
@@ -34,8 +34,6 @@
{"s" , CONFIG_HLP_SNR, 0, dblptr:&snr_dB, defdblval:25, TYPE_DOUBLE, 0}, \
}
#include "threads_t.h"
extern
threads_t
threads
;
extern
uint32_t
target_dl_mcs
;
extern
uint32_t
target_dl_Nl
;
extern
uint32_t
target_ul_Nl
;
...
...
executables/threads_t.h
deleted
100644 → 0
View file @
ade2cf33
#ifndef _EXECUTABLES_THREADS_T_H_
#define _EXECUTABLES_THREADS_T_H_
typedef
struct
threads_s
{
int
main
;
int
sync
;
int
one
;
int
two
;
int
three
;
int
slot1_proc_one
;
int
slot1_proc_two
;
int
slot1_proc_three
;
//int dlsch_td_one;
//int dlsch_td_two;
//int dlsch_td_three;
//int dlsch_td1_one;
//int dlsch_td1_two;
//int dlsch_td1_three;
}
threads_t
;
#endif
/* _EXECUTABLES_THREADS_T_H_ */
targets/COMMON/threads_t.h
deleted
100644 → 0
View file @
ade2cf33
#ifndef _TARGETS_COMMON_THREADS_T_H_
#define _TARGETS_COMMON_THREADS_T_H_
typedef
struct
threads_s
{
int
main
;
int
sync
;
int
one
;
int
two
;
int
three
;
int
slot1_proc_one
;
int
slot1_proc_two
;
int
slot1_proc_three
;
//int dlsch_td_one;
//int dlsch_td_two;
//int dlsch_td_three;
//int dlsch_td1_one;
//int dlsch_td1_two;
//int dlsch_td1_three;
}
threads_t
;
#endif
/* _TARGETS_COMMON_THREADS_T_H_ */
targets/RT/USER/lte-softmodem.h
View file @
94c74012
...
...
@@ -19,7 +19,6 @@
#include <sys/sysinfo.h>
#include <sys/types.h>
#include <unistd.h>
#include "threads_t.h"
#include "sdr/COMMON/common_lib.h"
//#undef MALLOC
#include "assertions.h"
...
...
targets/RT/USER/lte-ue.c
View file @
94c74012
...
...
@@ -151,8 +151,6 @@ static const eutra_band_t eutra_bands[] = {
};
threads_t
threads
=
{
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
};
pthread_t
main_ue_thread
;
pthread_attr_t
attr_UE_thread
;
struct
sched_param
sched_param_UE_thread
;
...
...
@@ -469,9 +467,6 @@ static void *UE_thread_synch(void *arg) {
cpu_set_t
cpuset
;
CPU_ZERO
(
&
cpuset
);
if
(
threads
.
sync
!=
-
1
)
CPU_SET
(
threads
.
sync
,
&
cpuset
);
// this thread priority must be lower that the main acquisition thread
sprintf
(
threadname
,
"sync UE %d
\n
"
,
UE
->
Mod_id
);
init_thread
(
100000
,
500000
,
FIFO_PRIORITY
-
1
,
&
cpuset
,
threadname
);
...
...
@@ -774,15 +769,6 @@ static void *UE_thread_rxn_txnp4(void *arg) {
cpu_set_t
cpuset
;
CPU_ZERO
(
&
cpuset
);
if
(
(
proc
->
sub_frame_start
+
1
)
%
RX_NB_TH
==
0
&&
threads
.
one
!=
-
1
)
CPU_SET
(
threads
.
one
,
&
cpuset
);
if
(
RX_NB_TH
>
1
&&
(
proc
->
sub_frame_start
+
1
)
%
RX_NB_TH
==
1
&&
threads
.
two
!=
-
1
)
CPU_SET
(
threads
.
two
,
&
cpuset
);
if
(
RX_NB_TH
>
2
&&
(
proc
->
sub_frame_start
+
1
)
%
RX_NB_TH
==
2
&&
threads
.
three
!=
-
1
)
CPU_SET
(
threads
.
three
,
&
cpuset
);
//CPU_SET(threads.three, &cpuset);
init_thread
(
900000
,
1000000
,
FIFO_PRIORITY
-
1
,
&
cpuset
,
threadname
);
...
...
@@ -1936,9 +1922,6 @@ void *UE_thread(void *arg) {
cpu_set_t
cpuset
;
CPU_ZERO
(
&
cpuset
);
if
(
threads
.
main
!=
-
1
)
CPU_SET
(
threads
.
main
,
&
cpuset
);
init_thread
(
100000
,
500000
,
FIFO_PRIORITY
,
&
cpuset
,
"UHD Threads"
);
/*
while (sync_var<0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment