msm: bus_arb: Disable debug logging.

* This debug logging consumes 10% of all the CPU
   cycles in the drivers communicating with the DSP.

 * Disable the logging for the time being until we add
   a config.

Bug: 71867957
Change-Id: I97d418fee3d4576b077ed284ed5ae4447da5a789
This commit is contained in:
Philip Cuadra 2018-01-18 11:32:26 -08:00 committed by Gagan Malvi
parent fc87a3047e
commit 96060693a5
No known key found for this signature in database
GPG key ID: B932A7CE71E9198F

View file

@ -18,6 +18,8 @@
#define NUM_LNODES 3 #define NUM_LNODES 3
#define MAX_STR_CL 50 #define MAX_STR_CL 50
#define DEBUG_REC_TRANSACTION 0
struct bus_search_type { struct bus_search_type {
struct list_head link; struct list_head link;
struct list_head node_list; struct list_head node_list;
@ -1241,6 +1243,7 @@ static int update_bw_adhoc(struct msm_bus_client_handle *cl, u64 ab, u64 ib)
if (!strcmp(test_cl, cl->name)) if (!strcmp(test_cl, cl->name))
log_transaction = true; log_transaction = true;
if (DEBUG_REC_TRANSACTION)
msm_bus_dbg_rec_transaction(cl, ab, ib); msm_bus_dbg_rec_transaction(cl, ab, ib);
if ((cl->cur_act_ib == ib) && (cl->cur_act_ab == ab)) { if ((cl->cur_act_ib == ib) && (cl->cur_act_ab == ab)) {
@ -1302,7 +1305,9 @@ static int update_bw_context(struct msm_bus_client_handle *cl, u64 act_ab,
if (!slp_ab && !slp_ib) if (!slp_ab && !slp_ib)
cl->active_only = true; cl->active_only = true;
msm_bus_dbg_rec_transaction(cl, cl->cur_act_ab, cl->cur_dual_ib); if (DEBUG_REC_TRANSACTION)
msm_bus_dbg_rec_transaction(cl, cl->cur_act_ab,
cl->cur_dual_ib);
ret = update_path(cl->mas_dev, cl->slv, act_ib, act_ab, slp_ib, ret = update_path(cl->mas_dev, cl->slv, act_ib, act_ab, slp_ib,
slp_ab, cl->cur_act_ab, cl->cur_act_ab, slp_ab, cl->cur_act_ab, cl->cur_act_ab,
cl->first_hop, cl->active_only); cl->first_hop, cl->active_only);