Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
ed91b103
Commit
ed91b103
authored
Jan 11, 2015
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6347
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
17cdc733
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
21 deletions
+7
-21
targets/RT/USER/sched_dlsch.c
targets/RT/USER/sched_dlsch.c
+3
-4
targets/RT/USER/sched_rx_pdsch.c
targets/RT/USER/sched_rx_pdsch.c
+4
-17
No files found.
targets/RT/USER/sched_dlsch.c
View file @
ed91b103
...
...
@@ -95,10 +95,10 @@ static void * dlsch_thread(void *param) {
//unsigned long cpuid;
unsigned
char
dlsch_thread_index
=
*
((
unsigned
char
*
)
param
);
unsigned
int
ret
;
unsigned
int
ret
=
0
;
uint8_t
harq_pid
;
RTIME
time_in
,
time_out
;
#ifdef RTAI
RT_TASK
*
task
;
char
task_name
[
8
];
...
...
@@ -159,7 +159,7 @@ static void * dlsch_thread(void *param) {
LOG_I
(
PHY
,
"[SCHED][DLSCH] Frame %d: Calling dlsch_decoding with dlsch_thread_index = %d
\n
"
,
phy_vars_ue
->
frame_rx
,
dlsch_thread_index
);
time_in
=
rt_get_time_ns
();
if
(
phy_vars_ue
->
frame_rx
<
phy_vars_ue
->
dlsch_errors
[
eNB_id
])
{
phy_vars_ue
->
dlsch_errors
[
eNB_id
]
=
0
;
...
...
@@ -244,7 +244,6 @@ static void * dlsch_thread(void *param) {
}
*/
time_out
=
rt_get_time_ns
();
#ifdef DEBUG_PHY
LOG_I
(
PHY
,
"[UE %d][PDSCH %x/%d] Frame %d subframe %d: PDSCH/DLSCH decoding iter %d (mcs %d, rv %d, TBS %d)
\n
"
,
...
...
targets/RT/USER/sched_rx_pdsch.c
View file @
ed91b103
...
...
@@ -53,12 +53,6 @@
#include "MAC_INTERFACE/extern.h"
#ifdef CBMIMO1
#include "ARCH/CBMIMO1/DEVICE_DRIVER/cbmimo1_device.h"
#include "ARCH/CBMIMO1/DEVICE_DRIVER/extern.h"
#include "ARCH/CBMIMO1/DEVICE_DRIVER/defs.h"
#endif // CBMIMO1
#include "UTIL/LOG/vcd_signal_dumper.h"
RTIME
time0
,
time1
;
...
...
@@ -90,22 +84,21 @@ extern pthread_cond_t dlsch_cond[8];
static
void
*
rx_pdsch_thread
(
void
*
param
)
{
//unsigned long cpuid;
uint8_t
rx_pdsch_thread_index
=
0
;
uint8_t
dlsch_thread_index
=
0
;
uint8_t
pilot
1
,
pilot2
,
pilot3
,
harq_pid
,
subframe
;
uint8_t
pilot
2
,
harq_pid
,
subframe
;
// uint8_t last_slot;
uint8_t
dual_stream_UE
=
0
;
uint8_t
i_mod
=
0
;
RTIME
time_in
,
time_out
;
#ifdef RTAI
RT_TASK
*
task
;
#endif
int
m
,
eNB_id
=
0
;
int
eNB_id_i
=
1
;
PHY_VARS_UE
*
UE
=
PHY_vars_UE_g
[
0
];
PHY_VARS_UE
*
UE
=
PHY_vars_UE_g
[
0
]
[
0
]
;
#ifdef RTAI
task
=
rt_task_init_schmod
(
nam2num
(
"RX_PDSCH_THREAD"
),
0
,
0
,
0
,
SCHED_FIFO
,
0xF
);
...
...
@@ -128,15 +121,11 @@ static void * rx_pdsch_thread(void *param) {
rt_make_hard_real_time
();
#endif
if
(
UE
->
lte_frame_parms
.
Ncp
==
0
)
{
// normal prefix
pilot1
=
4
;
if
(
UE
->
lte_frame_parms
.
Ncp
==
NORMAL
)
{
// normal prefix
pilot2
=
7
;
pilot3
=
11
;
}
else
{
// extended prefix
pilot1
=
3
;
pilot2
=
6
;
pilot3
=
9
;
}
...
...
@@ -190,7 +179,6 @@ static void * rx_pdsch_thread(void *param) {
LOG_D
(
PHY
,
"[SCHED][RX_PDSCH] Frame %d, slot %d: Calling rx_pdsch_decoding with harq_pid %d
\n
"
,
UE
->
frame_rx
,
UE
->
slot_rx
,
harq_pid
);
time_in
=
rt_get_time_ns
();
// Check if we are in even or odd slot
if
(
UE
->
slot_rx
%
2
)
{
// odd slots
...
...
@@ -256,7 +244,6 @@ static void * rx_pdsch_thread(void *param) {
}
}
time_out
=
rt_get_time_ns
();
if
(
pthread_mutex_lock
(
&
rx_pdsch_mutex
)
!=
0
)
{
msg
(
"[openair][SCHED][RX_PDSCH] error locking mutex.
\n
"
);
...
...
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