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
spbro
OpenXG-RAN
Commits
a25b209e
Commit
a25b209e
authored
Mar 11, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Check if fedora and inside kernel
It's completely unclear what this is supposed to do.
parent
7a8b2fe4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
33 deletions
+0
-33
common/utils/system.c
common/utils/system.c
+0
-21
common/utils/system.h
common/utils/system.h
+0
-3
executables/lte-ue.c
executables/lte-ue.c
+0
-5
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+0
-4
No files found.
common/utils/system.c
View file @
a25b209e
...
...
@@ -95,17 +95,6 @@ static void read_pipe(int p, char *b, int size) {
size
-=
ret
;
}
}
int
checkIfFedoraDistribution
(
void
)
{
return
!
system
(
"grep -iq 'ID_LIKE.*fedora' /etc/os-release "
);
}
int
checkIfGenericKernelOnFedora
(
void
)
{
return
system
(
"uname -a | grep -q rt"
);
}
int
checkIfInsideContainer
(
void
)
{
return
!
system
(
"egrep -q 'libpod|podman|kubepods' /proc/self/cgroup"
);
}
/********************************************************************/
/* background process */
...
...
@@ -234,11 +223,6 @@ void threadCreate(pthread_t* t, void * (*func)(void*), void * param, char* name,
LOG_I
(
UTIL
,
"Creating thread %s with affinity %d and priority %d
\n
"
,
name
,
affinity
,
priority
);
if
(
checkIfFedoraDistribution
())
if
(
checkIfGenericKernelOnFedora
())
if
(
checkIfInsideContainer
())
settingPriority
=
0
;
if
(
settingPriority
)
{
ret
=
pthread_attr_setinheritsched
(
&
attr
,
PTHREAD_EXPLICIT_SCHED
);
AssertFatal
(
ret
==
0
,
"Error in pthread_attr_setinheritsched(): ret: %d, errno: %d
\n
"
,
ret
,
errno
);
...
...
@@ -314,11 +298,6 @@ void thread_top_init(char *thread_name,
}
}
if
(
checkIfFedoraDistribution
())
if
(
checkIfGenericKernelOnFedora
())
if
(
checkIfInsideContainer
())
settingPriority
=
0
;
if
(
settingPriority
)
{
memset
(
&
sparam
,
0
,
sizeof
(
sparam
));
sparam
.
sched_priority
=
sched_get_priority_max
(
SCHED_FIFO
);
...
...
common/utils/system.h
View file @
a25b209e
...
...
@@ -61,9 +61,6 @@ void thread_top_init(char *thread_name,
* Functions to check system at runtime.
****************************************************/
int
checkIfFedoraDistribution
(
void
);
int
checkIfGenericKernelOnFedora
(
void
);
int
checkIfInsideContainer
(
void
);
int
rt_sleep_ns
(
uint64_t
x
);
#ifdef __cplusplus
}
...
...
executables/lte-ue.c
View file @
a25b209e
...
...
@@ -195,11 +195,6 @@ void init_thread(int sched_runtime,
char
*
name
)
{
int
settingPriority
=
1
;
if
(
checkIfFedoraDistribution
())
if
(
checkIfGenericKernelOnFedora
())
if
(
checkIfInsideContainer
())
settingPriority
=
0
;
if
(
settingPriority
)
{
if
(
CPU_COUNT
(
cpuset
)
>
0
)
AssertFatal
(
0
==
pthread_setaffinity_np
(
pthread_self
(),
sizeof
(
cpu_set_t
),
cpuset
),
""
);
...
...
executables/nr-uesoftmodem.c
View file @
a25b209e
...
...
@@ -457,10 +457,6 @@ ldpc_interface_t ldpc_interface = {0}, ldpc_interface_offload = {0};
int
main
(
int
argc
,
char
**
argv
)
{
int
set_exe_prio
=
1
;
if
(
checkIfFedoraDistribution
())
if
(
checkIfGenericKernelOnFedora
())
if
(
checkIfInsideContainer
())
set_exe_prio
=
0
;
if
(
set_exe_prio
)
set_priority
(
79
);
...
...
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