qcacmn: Structure optimized through poke-a-hole tool
Structure memory is being optimized by aligning field with bus address length using pokeahole tool. This patch optimizes structure linked in obj_mgr and scheduler modules. Structure Bytes saved (64bit) Bytes saved (32bit) scheduler_ctx 8 bytes 4 bytes wlan_channel 8 bytes 8 bytes Change-Id: I298946b55328d8d9b564c140e0a59e0b8702fab0 CRs-Fixed: 2587842
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -95,11 +95,11 @@ struct scheduler_mq_ctx {
|
|||||||
* @resume_sch_event: scheduler resume wait event
|
* @resume_sch_event: scheduler resume wait event
|
||||||
* @sch_thread_lock: scheduler thread lock
|
* @sch_thread_lock: scheduler thread lock
|
||||||
* @sch_last_qidx: scheduler last qidx allocation
|
* @sch_last_qidx: scheduler last qidx allocation
|
||||||
|
* @watchdog_msg_type: 'type' of the current msg being processed
|
||||||
* @hdd_callback: os if suspend callback
|
* @hdd_callback: os if suspend callback
|
||||||
* @legacy_wma_handler: legacy wma message handler
|
* @legacy_wma_handler: legacy wma message handler
|
||||||
* @legacy_sys_handler: legacy sys message handler
|
* @legacy_sys_handler: legacy sys message handler
|
||||||
* @watchdog_timer: timer for triggering a scheduler watchdog bite
|
* @watchdog_timer: timer for triggering a scheduler watchdog bite
|
||||||
* @watchdog_msg_type: 'type' of the current msg being processed
|
|
||||||
* @watchdog_callback: the callback of the current msg being processed
|
* @watchdog_callback: the callback of the current msg being processed
|
||||||
*/
|
*/
|
||||||
struct scheduler_ctx {
|
struct scheduler_ctx {
|
||||||
@@ -112,11 +112,11 @@ struct scheduler_ctx {
|
|||||||
qdf_event_t resume_sch_event;
|
qdf_event_t resume_sch_event;
|
||||||
qdf_spinlock_t sch_thread_lock;
|
qdf_spinlock_t sch_thread_lock;
|
||||||
uint8_t sch_last_qidx;
|
uint8_t sch_last_qidx;
|
||||||
|
uint16_t watchdog_msg_type;
|
||||||
hdd_suspend_callback hdd_callback;
|
hdd_suspend_callback hdd_callback;
|
||||||
scheduler_msg_process_fn_t legacy_wma_handler;
|
scheduler_msg_process_fn_t legacy_wma_handler;
|
||||||
scheduler_msg_process_fn_t legacy_sys_handler;
|
scheduler_msg_process_fn_t legacy_sys_handler;
|
||||||
qdf_timer_t watchdog_timer;
|
qdf_timer_t watchdog_timer;
|
||||||
uint16_t watchdog_msg_type;
|
|
||||||
void *watchdog_callback;
|
void *watchdog_callback;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -255,11 +255,11 @@ struct wlan_vdev_create_params {
|
|||||||
* struct wlan_channel - channel structure
|
* struct wlan_channel - channel structure
|
||||||
* @ch_freq: Channel in Mhz.
|
* @ch_freq: Channel in Mhz.
|
||||||
* @ch_ieee: IEEE channel number.
|
* @ch_ieee: IEEE channel number.
|
||||||
* @ch_flags: Channel flags.
|
|
||||||
* @ch_flagext: Channel extension flags.
|
|
||||||
* @ch_maxpower: Maximum tx power in dBm.
|
|
||||||
* @ch_freq_seg1: Channel Center frequeny for VHT80/160 and HE80/160.
|
* @ch_freq_seg1: Channel Center frequeny for VHT80/160 and HE80/160.
|
||||||
* @ch_freq_seg2: Second channel Center frequency applicable for 80+80MHz mode.
|
* @ch_freq_seg2: Second channel Center frequency applicable for 80+80MHz mode.
|
||||||
|
* @ch_maxpower: Maximum tx power in dBm.
|
||||||
|
* @ch_flagext: Channel extension flags.
|
||||||
|
* @ch_flags: Channel flags.
|
||||||
* @ch_cfreq1: channel center frequency for primary
|
* @ch_cfreq1: channel center frequency for primary
|
||||||
* @ch_cfreq2: channel center frequency for secondary
|
* @ch_cfreq2: channel center frequency for secondary
|
||||||
* @ch_width: Channel width.
|
* @ch_width: Channel width.
|
||||||
@@ -268,11 +268,11 @@ struct wlan_vdev_create_params {
|
|||||||
struct wlan_channel {
|
struct wlan_channel {
|
||||||
uint16_t ch_freq;
|
uint16_t ch_freq;
|
||||||
uint8_t ch_ieee;
|
uint8_t ch_ieee;
|
||||||
uint64_t ch_flags;
|
|
||||||
uint16_t ch_flagext;
|
|
||||||
int8_t ch_maxpower;
|
|
||||||
uint8_t ch_freq_seg1;
|
uint8_t ch_freq_seg1;
|
||||||
uint8_t ch_freq_seg2;
|
uint8_t ch_freq_seg2;
|
||||||
|
int8_t ch_maxpower;
|
||||||
|
uint16_t ch_flagext;
|
||||||
|
uint64_t ch_flags;
|
||||||
uint32_t ch_cfreq1;
|
uint32_t ch_cfreq1;
|
||||||
uint32_t ch_cfreq2;
|
uint32_t ch_cfreq2;
|
||||||
enum phy_ch_width ch_width;
|
enum phy_ch_width ch_width;
|
||||||
|
Reference in New Issue
Block a user