OSDN Git Service

msm: bus_arb: disable debug logging
authorPhilip Cuadra <philipcuadra@google.com>
Thu, 18 Jan 2018 19:32:26 +0000 (11:32 -0800)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:16:44 +0000 (01:16 +0800)
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 it we add a config.

Bug: 71867957
Change-Id: I97d418fee3d4576b077ed284ed5ae4447da5a789
Signed-off-by: Philip Cuadra <philipcuadra@google.com>
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
drivers/soc/qcom/msm_bus/msm_bus_arb_adhoc.c

index 4ed3e65..1b559aa 100644 (file)
@@ -25,6 +25,8 @@
 #define NUM_LNODES     3
 #define MAX_STR_CL     50
 
+#define DEBUG_REC_TRANSACTION 0
+
 struct bus_search_type {
        struct list_head link;
        struct list_head node_list;
@@ -1265,7 +1267,8 @@ static int update_bw_adhoc(struct msm_bus_client_handle *cl, u64 ab, u64 ib)
        if (!strcmp(test_cl, cl->name))
                log_transaction = true;
 
-       msm_bus_dbg_rec_transaction(cl, ab, ib);
+       if (DEBUG_REC_TRANSACTION)
+               msm_bus_dbg_rec_transaction(cl, ab, ib);
 
        if ((cl->cur_act_ib == ib) && (cl->cur_act_ab == ab)) {
                MSM_BUS_DBG("%s:no change in request", cl->name);
@@ -1326,7 +1329,9 @@ static int update_bw_context(struct msm_bus_client_handle *cl, u64 act_ab,
 
        if (!slp_ab && !slp_ib)
                cl->active_only = true;
-       msm_bus_dbg_rec_transaction(cl, cl->cur_act_ab, cl->cur_slp_ib);
+       if (DEBUG_REC_TRANSACTION)
+               msm_bus_dbg_rec_transaction(cl, cl->cur_act_ab, cl->cur_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,  cl->first_hop,
                                cl->active_only);