summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorManjunathappa Prakash <prakashpm@codeaurora.org>2017-03-20 16:28:28 -0700
committersnandini <snandini@codeaurora.org>2017-10-27 01:57:54 -0700
commitc1e703a4cb35a20fd1a6b38e9d6e4471813b2fd1 (patch)
tree8e7d8655e602428f8f18da5f2316e20b6e53fc0b /utils
parent26cf747681dbd7cc65fe3d550a8531b0d3a10f36 (diff)
downloadqca-wfi-host-cmn-c1e703a4cb35a20fd1a6b38e9d6e4471813b2fd1.tar.gz
qcacmn: Set CPU floor freq on high throughput
On high throughput mode, send a message to perfd, through cnss-daemon, to set the min freq for perf cluster to 700 KHz, and release it on transition to low throughput. Goes with corresponding changes on cnss-daemon (1834087). Change-Id: I9c5c701fa33992e44fc3bad5e58599da0b45cbd7 CRs-Fixed: 2133069
Diffstat (limited to 'utils')
-rw-r--r--utils/nlink/inc/wlan_nlink_common.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/nlink/inc/wlan_nlink_common.h b/utils/nlink/inc/wlan_nlink_common.h
index d61613ef2..d8ef68df9 100644
--- a/utils/nlink/inc/wlan_nlink_common.h
+++ b/utils/nlink/inc/wlan_nlink_common.h
@@ -90,6 +90,7 @@
#define WLAN_SVC_WLAN_AUTO_SHUTDOWN_CANCEL_IND 0x10C
#define WLAN_SVC_WLAN_RADIO_INDEX 0x10D
#define WLAN_SVC_FW_SHUTDOWN_IND 0x10E
+#define WLAN_SVC_CORE_MINFREQ 0x10F
#define WLAN_SVC_MAX_SSID_LEN 32
#define WLAN_SVC_MAX_BSSID_LEN 6
#define WLAN_SVC_MAX_STR_LEN 16
@@ -225,4 +226,28 @@ enum wlan_tp_level {
WLAN_SVC_TP_HIGH,
};
+/**
+ * struct wlan_core_minfreq - msg to [re]set the min freq of a set of cores
+ * @magic: signature token: 0xBABA
+ * @reserved: unused for now
+ * @coremask: bitmap of cores (16 bits) bit0=CORE0, bit1=CORE1, ...
+ * coremask is ONLY valid for set command
+ * valid values: 0xf0, or 0x0f
+ * @freq: frequency in KH
+ * > 0: "set to the given frequency"
+ * == 0: "free; remove the lock"
+ *
+ * Msg structure passed by the driver to cnss-daemon.
+ *
+ * Semantical Alert:
+ * There can be only one outstanding lock, even for different masks.
+ */
+#define WLAN_CORE_MINFREQ_MAGIC 0xBABA
+struct wlan_core_minfreq {
+ uint16_t magic;
+ uint16_t reserved;
+ uint16_t coremask;
+ uint16_t freq;
+};
+
#endif /* WLAN_NLINK_COMMON_H__ */