This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/17349 ) Change subject: trxcon/scheduler: make TDMA_FN_INC(fn) behave like ++fn ...................................................................... trxcon/scheduler: make TDMA_FN_INC(fn) behave like ++fn Change-Id: I9c2fa26df54b5de836a18f09363a9221c24ae707 --- M src/host/trxcon/sched_clck.c M src/host/trxcon/scheduler.h 2 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/49/17349/1 diff --git a/src/host/trxcon/sched_clck.c b/src/host/trxcon/sched_clck.c index 66477b2..7c814dc 100644 --- a/src/host/trxcon/sched_clck.c +++ b/src/host/trxcon/sched_clck.c @@ -82,7 +82,7 @@ timespecadd(tv_clock, &frame_duration, tv_clock); elapsed_us -= FRAME_DURATION_uS; - sched->fn_counter_proc = TDMA_FN_INC(sched->fn_counter_proc); + TDMA_FN_INC(&sched->fn_counter_proc); /* Call frame callback */ if (sched->clock_cb) @@ -178,7 +178,7 @@ /* Transmit what we still need to transmit */ while (fn != sched->fn_counter_proc) { - sched->fn_counter_proc = TDMA_FN_INC(sched->fn_counter_proc); + TDMA_FN_INC(&sched->fn_counter_proc); /* Call frame callback */ if (sched->clock_cb) diff --git a/src/host/trxcon/scheduler.h b/src/host/trxcon/scheduler.h index 7ab17ab..36c64e5 100644 --- a/src/host/trxcon/scheduler.h +++ b/src/host/trxcon/scheduler.h @@ -16,7 +16,7 @@ #define TDMA_FN_SUB(a, b) \ ((a + GSM_HYPERFRAME - b) % GSM_HYPERFRAME) #define TDMA_FN_INC(fn) \ - TDMA_FN_SUM(fn, 1) + (*fn = TDMA_FN_SUM(*fn, 1)) #define TDMA_FN_MIN(a, b) \ (a < b ? a : b) #define TDMA_FN_DIFF(a, b) \ -- To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/17349 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmocom-bb Gerrit-Branch: master Gerrit-Change-Id: I9c2fa26df54b5de836a18f09363a9221c24ae707 Gerrit-Change-Number: 17349 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <axilirator at gmail.com> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200304/830605d4/attachment.htm>