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
8dc29be0
Commit
8dc29be0
authored
Apr 23, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused set_priority()/set_thread_priority()
parent
973d1393
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
53 deletions
+0
-53
common/utils/utils.c
common/utils/utils.c
+0
-15
common/utils/utils.h
common/utils/utils.h
+0
-2
nfapi/oai_integration/nfapi.c
nfapi/oai_integration/nfapi.c
+0
-17
nfapi/open-nFAPI/pnf_sim/src/fapi_stub.cpp
nfapi/open-nFAPI/pnf_sim/src/fapi_stub.cpp
+0
-19
No files found.
common/utils/utils.c
View file @
8dc29be0
...
...
@@ -118,21 +118,6 @@ char *itoa(int i) {
return
strdup
(
buffer
);
}
void
set_priority
(
int
priority
)
{
struct
sched_param
param
=
{
.
sched_priority
=
priority
,
};
fprintf
(
stderr
,
"Calling sched_setscheduler(%d)
\n
"
,
priority
);
if
(
sched_setscheduler
(
0
,
SCHED_RR
,
&
param
)
==
-
1
)
{
fprintf
(
stderr
,
"sched_setscheduler: %s
\n
"
,
strerror
(
errno
));
abort
();
}
}
/**
* @brief Convert a version string x.y.z into numbers.
*
...
...
common/utils/utils.h
View file @
8dc29be0
...
...
@@ -116,8 +116,6 @@ int hex_char_to_hex_value (char c);
// Converts an hexadecimal ASCII coded string into its value.**
int
hex_string_to_hex_value
(
uint8_t
*
hex_value
,
const
char
*
hex_string
,
int
size
);
void
set_priority
(
int
priority
);
char
*
itoa
(
int
i
);
#define STRINGIFY(S) #S
...
...
nfapi/oai_integration/nfapi.c
View file @
8dc29be0
...
...
@@ -40,23 +40,6 @@ typedef struct {
static
nfapi_params_t
nfapi_params
=
{
0
};
void
set_thread_priority
(
int
priority
)
{
set_priority
(
priority
);
pthread_attr_t
ptAttr
;
if
(
pthread_attr_setschedpolicy
(
&
ptAttr
,
SCHED_RR
)
!=
0
)
{
printf
(
"Failed to set pthread sched policy SCHED_RR
\n
"
);
}
pthread_attr_setinheritsched
(
&
ptAttr
,
PTHREAD_EXPLICIT_SCHED
);
struct
sched_param
thread_params
;
thread_params
.
sched_priority
=
20
;
if
(
pthread_attr_setschedparam
(
&
ptAttr
,
&
thread_params
)
!=
0
)
{
printf
(
"failed to set sched param
\n
"
);
}
}
const
char
*
nfapi_get_strmode
(
void
)
{
if
(
nfapi_params
.
nfapi_mode
>
NFAPI_MODE_UNKNOWN
)
return
nfapi_str_mode
[
NFAPI_MODE_UNKNOWN
];
...
...
nfapi/open-nFAPI/pnf_sim/src/fapi_stub.cpp
View file @
8dc29be0
...
...
@@ -137,25 +137,6 @@ extern "C"
}
fapi_internal_t
;
}
extern
void
set_thread_priority
(
int
);
/*
{
pthread_attr_t ptAttr;
struct sched_param schedParam;
schedParam.__sched_priority = 79;
sched_setscheduler(0, SCHED_RR, &schedParam);
pthread_attr_setschedpolicy(&ptAttr, SCHED_RR);
pthread_attr_setinheritsched(&ptAttr, PTHREAD_EXPLICIT_SCHED);
struct sched_param thread_params;
thread_params.sched_priority = 20;
pthread_attr_setschedparam(&ptAttr, &thread_params);
}
*/
void
send_uplink_indications
(
fapi_internal_t
*
instance
,
uint16_t
sfn_sf
)
{
fapi_harq_ind_t
harq_ind
;
(
instance
->
callbacks
.
fapi_harq_ind
)(
&
(
instance
->
_public
),
&
harq_ind
);
...
...
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