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:
Neha Bisht
2019-12-17 10:13:17 +05:30
committed by nshrivas
parent 09d116aee9
commit 503663c6da
2 changed files with 9 additions and 9 deletions

View File

@@ -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
* 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
* @sch_thread_lock: scheduler thread lock
* @sch_last_qidx: scheduler last qidx allocation
* @watchdog_msg_type: 'type' of the current msg being processed
* @hdd_callback: os if suspend callback
* @legacy_wma_handler: legacy wma message handler
* @legacy_sys_handler: legacy sys message handler
* @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
*/
struct scheduler_ctx {
@@ -112,11 +112,11 @@ struct scheduler_ctx {
qdf_event_t resume_sch_event;
qdf_spinlock_t sch_thread_lock;
uint8_t sch_last_qidx;
uint16_t watchdog_msg_type;
hdd_suspend_callback hdd_callback;
scheduler_msg_process_fn_t legacy_wma_handler;
scheduler_msg_process_fn_t legacy_sys_handler;
qdf_timer_t watchdog_timer;
uint16_t watchdog_msg_type;
void *watchdog_callback;
};

View File

@@ -255,11 +255,11 @@ struct wlan_vdev_create_params {
* struct wlan_channel - channel structure
* @ch_freq: Channel in Mhz.
* @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_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_cfreq2: channel center frequency for secondary
* @ch_width: Channel width.
@@ -268,11 +268,11 @@ struct wlan_vdev_create_params {
struct wlan_channel {
uint16_t ch_freq;
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_seg2;
int8_t ch_maxpower;
uint16_t ch_flagext;
uint64_t ch_flags;
uint32_t ch_cfreq1;
uint32_t ch_cfreq2;
enum phy_ch_width ch_width;