qcacmn: Change device_wake, high_tput check order
In hal_delayed_reg_write change the order of hal_is_reg_write_tput_level_high and pld_is_device_awake check. This ensures that throughput level is checked before checking for device wake state. This is beneficial in saving CPU cycles in high throughput scenarios. Change-Id: I23d0bde46779df9dca4388bf67c9395999274f3a CRs-Fixed: 3078096
This commit is contained in:

committed by
Madan Koyyalamudi

parent
aa2efbcf39
commit
733215d31f
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. 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
|
||||
@@ -992,8 +993,8 @@ void hal_delayed_reg_write(struct hal_soc *hal_soc,
|
||||
void __iomem *addr,
|
||||
uint32_t value)
|
||||
{
|
||||
if (pld_is_device_awake(hal_soc->qdf_dev->dev) ||
|
||||
hal_is_reg_write_tput_level_high(hal_soc)) {
|
||||
if (hal_is_reg_write_tput_level_high(hal_soc) ||
|
||||
pld_is_device_awake(hal_soc->qdf_dev->dev)) {
|
||||
qdf_atomic_inc(&hal_soc->stats.wstats.direct);
|
||||
srng->wstats.direct++;
|
||||
hal_write_address_32_mb(hal_soc, addr, value, false);
|
||||
|
Reference in New Issue
Block a user