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
Michael Black
OpenXG-RAN
Commits
d836650d
Commit
d836650d
authored
Jun 27, 2020
by
Michael Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call sched_setscheduler
parent
2499b480
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
0 deletions
+28
-0
cmake_targets/.gitignore
cmake_targets/.gitignore
+5
-0
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+8
-0
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+7
-0
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+8
-0
No files found.
cmake_targets/.gitignore
0 → 100644
View file @
d836650d
/.ue.nvram0
/.ue_emm.nvram0
/.usim.nvram0
/nvram
/usim
targets/RT/USER/lte-softmodem.c
View file @
d836650d
...
...
@@ -511,6 +511,14 @@ static void wait_nfapi_init(char *thread_name) {
int
main
(
int
argc
,
char
**
argv
)
{
struct
sched_param
param
=
{
.
sched_priority
=
sched_get_priority_max
(
SCHED_RR
)
};
if
(
sched_setscheduler
(
0
,
SCHED_RR
,
&
param
)
==
-
1
)
fprintf
(
stderr
,
"error setting scheduler ... are you root?
\n
"
);
else
fprintf
(
stderr
,
"selected rt scheduler
\n
"
);
int
i
;
int
CC_id
=
0
;
int
ru_id
;
...
...
targets/RT/USER/lte-ue.c
View file @
d836650d
...
...
@@ -1038,6 +1038,7 @@ static void *UE_phy_stub_standalone_pnf_task(void *arg)
int
num_lone
=
0
;
int
last_sfn_sf
=
-
1
;
uint64_t
last_subframe_start
=
clock_usec
();
while
(
!
oai_exit
)
{
bool
sent_any
=
false
;
int
sfn_sf
=
current_sfn_sf
;
...
...
@@ -1045,6 +1046,12 @@ static void *UE_phy_stub_standalone_pnf_task(void *arg)
usleep
(
100
);
continue
;
}
uint64_t
subframe_start
=
clock_usec
();
LOG_I
(
MAC
,
"subframe elapsed %"
PRIu64
"usec
\n
"
,
subframe_start
-
last_subframe_start
);
last_subframe_start
=
subframe_start
;
last_sfn_sf
=
sfn_sf
;
proc
->
subframe_rx
=
NFAPI_SFNSF2SF
(
sfn_sf
);
proc
->
frame_rx
=
NFAPI_SFNSF2SFN
(
sfn_sf
);
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
d836650d
...
...
@@ -543,6 +543,14 @@ void init_pdcp(void) {
}
int
main
(
int
argc
,
char
**
argv
)
{
struct
sched_param
param
=
{
.
sched_priority
=
sched_get_priority_max
(
SCHED_RR
)
};
if
(
sched_setscheduler
(
0
,
SCHED_RR
,
&
param
)
==
-
1
)
fprintf
(
stderr
,
"error setting scheduler ... are you root?
\n
"
);
else
fprintf
(
stderr
,
"selected rt scheduler
\n
"
);
int
CC_id
;
uint8_t
abstraction_flag
=
0
;
#ifdef UESIM_EXPANSION
...
...
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