tbf: Use type bool for upgrade_to_multislot
Change-Id: I644d91b6230a90cc72e83443c11d24b8d0a2dcac
This commit is contained in:
parent
628d881247
commit
907f037339
|
@ -421,7 +421,7 @@ int alloc_algorithm_a(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf_,
|
||||||
tbf_->first_ts = tbf_->first_common_ts = ts;
|
tbf_->first_ts = tbf_->first_common_ts = ts;
|
||||||
ms_set_reserved_slots(ms, trx, 1 << ts, 1 << ts);
|
ms_set_reserved_slots(ms, trx, 1 << ts, 1 << ts);
|
||||||
|
|
||||||
tbf_->upgrade_to_multislot = 0;
|
tbf_->upgrade_to_multislot = false;
|
||||||
bts_do_rate_ctr_inc(bts, CTR_TBF_ALLOC_ALGO_A);
|
bts_do_rate_ctr_inc(bts, CTR_TBF_ALLOC_ALGO_A);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -945,7 +945,7 @@ int alloc_algorithm_b(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf_,
|
||||||
tbf_->upgrade_to_multislot = (avail_count > slotcount);
|
tbf_->upgrade_to_multislot = (avail_count > slotcount);
|
||||||
LOGPAL(tbf, "B", single, use_trx, LOGL_INFO, "using single slot at TS %d\n", first_ts);
|
LOGPAL(tbf, "B", single, use_trx, LOGL_INFO, "using single slot at TS %d\n", first_ts);
|
||||||
} else {
|
} else {
|
||||||
tbf_->upgrade_to_multislot = 0;
|
tbf_->upgrade_to_multislot = false;
|
||||||
LOGPAL(tbf, "B", single, use_trx, LOGL_INFO, "using %d slots\n", slotcount);
|
LOGPAL(tbf, "B", single, use_trx, LOGL_INFO, "using %d slots\n", slotcount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ gprs_rlcmac_tbf::gprs_rlcmac_tbf(struct gprs_rlcmac_bts *bts_, GprsMs *ms, gprs_
|
||||||
control_ts(0xff),
|
control_ts(0xff),
|
||||||
fT(0),
|
fT(0),
|
||||||
num_fT_exp(0),
|
num_fT_exp(0),
|
||||||
upgrade_to_multislot(0),
|
upgrade_to_multislot(false),
|
||||||
bts(bts_),
|
bts(bts_),
|
||||||
m_tfi(0),
|
m_tfi(0),
|
||||||
m_created_ts(0),
|
m_created_ts(0),
|
||||||
|
|
|
@ -265,7 +265,7 @@ struct gprs_rlcmac_tbf {
|
||||||
} meas;
|
} meas;
|
||||||
|
|
||||||
/* Can/should we upgrade this tbf to use multiple slots? */
|
/* Can/should we upgrade this tbf to use multiple slots? */
|
||||||
uint8_t upgrade_to_multislot;
|
bool upgrade_to_multislot;
|
||||||
|
|
||||||
/* store the BTS this TBF belongs to */
|
/* store the BTS this TBF belongs to */
|
||||||
struct gprs_rlcmac_bts *bts;
|
struct gprs_rlcmac_bts *bts;
|
||||||
|
|
Loading…
Reference in New Issue