aboutsummaryrefslogtreecommitdiff
path: root/include/linux/msm_bus_rules.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/msm_bus_rules.h')
-rw-r--r--include/linux/msm_bus_rules.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/include/linux/msm_bus_rules.h b/include/linux/msm_bus_rules.h
index e6142bfc..dda8610b 100644
--- a/include/linux/msm_bus_rules.h
+++ b/include/linux/msm_bus_rules.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -39,15 +39,18 @@ struct rule_apply_rcm_info {
struct bus_rule_type {
int num_src;
- int *src_id;
- int src_field;
- int op;
- u64 thresh;
+ int combo_op;
+ int num_thresh;
int num_dst;
- int *dst_node;
u64 dst_bw;
int mode;
+ u64 curr_bw;
void *client_data;
+ int *src_id;
+ int *src_field;
+ int *op;
+ u64 *thresh;
+ int *dst_node;
};
#if (defined(CONFIG_BUS_TOPOLOGY_ADHOC))
@@ -61,6 +64,8 @@ bool msm_rule_update(struct bus_rule_type *old_rule,
void msm_rule_evaluate_rules(int node);
void print_rules_buf(char *buf, int count);
bool msm_rule_are_rules_registered(void);
+int msm_rule_query_bandwidth(struct bus_rule_type *rule,
+ u64 *bw, struct notifier_block *nb);
#else
static inline void msm_rule_register(int num_rules, struct bus_rule_type *rule,
struct notifier_block *nb)
@@ -87,5 +92,10 @@ static inline bool msm_rule_update(struct bus_rule_type *old_rule,
static inline void msm_rule_evaluate_rules(int node)
{
}
+static inline int msm_rule_query_bandwidth(struct bus_rule_type *rule,
+ u64 *bw, struct notifier_block *nb)
+{
+ return false;
+}
#endif /* defined(CONFIG_BUS_TOPOLOGY_ADHOC) */
#endif /* _ARCH_ARM_MACH_MSM_BUS_RULES_H */