remove dirty and unused functions with global vars (not working anyway)
This commit is contained in:
committed by
Robert Schmidt
parent
c2d9f17242
commit
4b47d26ea2
@@ -204,55 +204,6 @@ void nr_slot_select() {};
|
|||||||
void NR_UL_indication(NR_UL_IND_t *UL_INFO) {};
|
void NR_UL_indication(NR_UL_IND_t *UL_INFO) {};
|
||||||
void gNB_dlsch_ulsch_scheduler() {};
|
void gNB_dlsch_ulsch_scheduler() {};
|
||||||
|
|
||||||
/*---------------------BMC: timespec helpers -----------------------------*/
|
|
||||||
|
|
||||||
struct timespec min_diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
struct timespec max_diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
|
|
||||||
struct timespec clock_difftime(struct timespec start, struct timespec end) {
|
|
||||||
struct timespec temp;
|
|
||||||
|
|
||||||
if ((end.tv_nsec-start.tv_nsec)<0) {
|
|
||||||
temp.tv_sec = end.tv_sec-start.tv_sec-1;
|
|
||||||
temp.tv_nsec = 1000000000+end.tv_nsec-start.tv_nsec;
|
|
||||||
} else {
|
|
||||||
temp.tv_sec = end.tv_sec-start.tv_sec;
|
|
||||||
temp.tv_nsec = end.tv_nsec-start.tv_nsec;
|
|
||||||
}
|
|
||||||
|
|
||||||
return temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_difftimes(void) {
|
|
||||||
#ifdef DEBUG
|
|
||||||
printf("difftimes min = %lu ns ; max = %lu ns\n", min_diff_time.tv_nsec, max_diff_time.tv_nsec);
|
|
||||||
#else
|
|
||||||
LOG_I(HW,"difftimes min = %lu ns ; max = %lu ns\n", min_diff_time.tv_nsec, max_diff_time.tv_nsec);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void update_difftimes(struct timespec start, struct timespec end) {
|
|
||||||
struct timespec diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
int changed = 0;
|
|
||||||
diff_time = clock_difftime(start, end);
|
|
||||||
|
|
||||||
if ((min_diff_time.tv_nsec == 0) || (diff_time.tv_nsec < min_diff_time.tv_nsec)) {
|
|
||||||
min_diff_time.tv_nsec = diff_time.tv_nsec;
|
|
||||||
changed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((max_diff_time.tv_nsec == 0) || (diff_time.tv_nsec > max_diff_time.tv_nsec)) {
|
|
||||||
max_diff_time.tv_nsec = diff_time.tv_nsec;
|
|
||||||
changed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 1
|
|
||||||
|
|
||||||
if (changed) print_difftimes();
|
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------*/
|
||||||
|
|
||||||
unsigned int build_rflocal(int txi, int txq, int rxi, int rxq) {
|
unsigned int build_rflocal(int txi, int txq, int rxi, int rxq) {
|
||||||
|
|||||||
@@ -174,55 +174,6 @@ instance_t CUuniqInstance=0;
|
|||||||
/* forward declarations */
|
/* forward declarations */
|
||||||
void set_default_frame_parms(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs]);
|
void set_default_frame_parms(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs]);
|
||||||
|
|
||||||
/*---------------------BMC: timespec helpers -----------------------------*/
|
|
||||||
|
|
||||||
struct timespec min_diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
struct timespec max_diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
|
|
||||||
struct timespec clock_difftime(struct timespec start, struct timespec end) {
|
|
||||||
struct timespec temp;
|
|
||||||
|
|
||||||
if ((end.tv_nsec-start.tv_nsec)<0) {
|
|
||||||
temp.tv_sec = end.tv_sec-start.tv_sec-1;
|
|
||||||
temp.tv_nsec = 1000000000+end.tv_nsec-start.tv_nsec;
|
|
||||||
} else {
|
|
||||||
temp.tv_sec = end.tv_sec-start.tv_sec;
|
|
||||||
temp.tv_nsec = end.tv_nsec-start.tv_nsec;
|
|
||||||
}
|
|
||||||
|
|
||||||
return temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_difftimes(void) {
|
|
||||||
#ifdef DEBUG
|
|
||||||
printf("difftimes min = %lu ns ; max = %lu ns\n", min_diff_time.tv_nsec, max_diff_time.tv_nsec);
|
|
||||||
#else
|
|
||||||
LOG_I(HW,"difftimes min = %lu ns ; max = %lu ns\n", min_diff_time.tv_nsec, max_diff_time.tv_nsec);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void update_difftimes(struct timespec start, struct timespec end) {
|
|
||||||
struct timespec diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
int changed = 0;
|
|
||||||
diff_time = clock_difftime(start, end);
|
|
||||||
|
|
||||||
if ((min_diff_time.tv_nsec == 0) || (diff_time.tv_nsec < min_diff_time.tv_nsec)) {
|
|
||||||
min_diff_time.tv_nsec = diff_time.tv_nsec;
|
|
||||||
changed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((max_diff_time.tv_nsec == 0) || (diff_time.tv_nsec > max_diff_time.tv_nsec)) {
|
|
||||||
max_diff_time.tv_nsec = diff_time.tv_nsec;
|
|
||||||
changed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 1
|
|
||||||
|
|
||||||
if (changed) print_difftimes();
|
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------*/
|
||||||
|
|
||||||
unsigned int build_rflocal(int txi, int txq, int rxi, int rxq) {
|
unsigned int build_rflocal(int txi, int txq, int rxi, int rxq) {
|
||||||
|
|||||||
@@ -129,52 +129,6 @@ void pdcp_run(const protocol_ctxt_t *const ctxt_pP)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------BMC: timespec helpers -----------------------------*/
|
|
||||||
|
|
||||||
struct timespec min_diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
struct timespec max_diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
|
|
||||||
struct timespec clock_difftime(struct timespec start, struct timespec end) {
|
|
||||||
struct timespec temp;
|
|
||||||
|
|
||||||
if ((end.tv_nsec-start.tv_nsec)<0) {
|
|
||||||
temp.tv_sec = end.tv_sec-start.tv_sec-1;
|
|
||||||
temp.tv_nsec = 1000000000+end.tv_nsec-start.tv_nsec;
|
|
||||||
} else {
|
|
||||||
temp.tv_sec = end.tv_sec-start.tv_sec;
|
|
||||||
temp.tv_nsec = end.tv_nsec-start.tv_nsec;
|
|
||||||
}
|
|
||||||
|
|
||||||
return temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_difftimes(void)
|
|
||||||
{
|
|
||||||
LOG_I(HW, "difftimes min = %lu ns ; max = %lu ns\n", min_diff_time.tv_nsec, max_diff_time.tv_nsec);
|
|
||||||
}
|
|
||||||
|
|
||||||
void update_difftimes(struct timespec start, struct timespec end) {
|
|
||||||
struct timespec diff_time = { .tv_sec = 0, .tv_nsec = 0 };
|
|
||||||
int changed = 0;
|
|
||||||
diff_time = clock_difftime(start, end);
|
|
||||||
|
|
||||||
if ((min_diff_time.tv_nsec == 0) || (diff_time.tv_nsec < min_diff_time.tv_nsec)) {
|
|
||||||
min_diff_time.tv_nsec = diff_time.tv_nsec;
|
|
||||||
changed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((max_diff_time.tv_nsec == 0) || (diff_time.tv_nsec > max_diff_time.tv_nsec)) {
|
|
||||||
max_diff_time.tv_nsec = diff_time.tv_nsec;
|
|
||||||
changed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 1
|
|
||||||
|
|
||||||
if (changed) print_difftimes();
|
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------*/
|
||||||
|
|
||||||
unsigned int build_rflocal(int txi, int txq, int rxi, int rxq) {
|
unsigned int build_rflocal(int txi, int txq, int rxi, int rxq) {
|
||||||
|
|||||||
Reference in New Issue
Block a user