From 9f80c82f54d9da7a551eda6439f551246c949e60 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Sun, 11 Feb 2024 21:45:47 +0100 Subject: [PATCH] Only use refcount if monolithic There is a reference counting mechanism used in monolithic. It does not apply for the PNF. --- openair1/SCHED_NR/fapi_nr_l1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair1/SCHED_NR/fapi_nr_l1.c b/openair1/SCHED_NR/fapi_nr_l1.c index 06747c9a2e..e6c3be94d1 100644 --- a/openair1/SCHED_NR/fapi_nr_l1.c +++ b/openair1/SCHED_NR/fapi_nr_l1.c @@ -280,7 +280,7 @@ void nr_schedule_response(NR_Sched_Rsp_t *Sched_INFO) } /* this thread is done with the sched_info, decrease the reference counter */ - if (slot_type == NR_DOWNLINK_SLOT || slot_type == NR_MIXED_SLOT) { + if ((slot_type == NR_DOWNLINK_SLOT || slot_type == NR_MIXED_SLOT) && NFAPI_MODE == NFAPI_MONOLITHIC) { LOG_D(NR_PHY, "Calling dref_sched_response for id %d in %d.%d (sched_response)\n", Sched_INFO->sched_response_id, frame, slot); deref_sched_response(Sched_INFO->sched_response_id); }