diff options
author | Dustin Brown <dustinb@codeaurora.org> | 2019-03-19 16:42:12 -0700 |
---|---|---|
committer | nshrivas <nshrivas@codeaurora.org> | 2019-03-27 12:51:49 -0700 |
commit | 3f49e5e9b17da8378a8cea327707bb98d718e68f (patch) | |
tree | dcb2469bc38264a411faa35488dda0df2377556b /core/cds | |
parent | e0a77273a9e205dea446ed4949292cfccba3c628 (diff) | |
download | qcacld-3f49e5e9b17da8378a8cea327707bb98d718e68f.tar.gz |
qcacld-3.0: Remove start/stop modules in progress
With the addition and integration of the Driver Synchronization feature,
it is no longer necessary to keep track of whether the driver modules
are starting or stopping. Remove the driver modules starting/stopping
flags.
Change-Id: I4718eedfaa1305780c5fcf6a2ff04114b210a911
CRs-Fixed: 2423618
Diffstat (limited to 'core/cds')
-rw-r--r-- | core/cds/inc/cds_api.h | 12 | ||||
-rw-r--r-- | core/cds/src/cds_sched.c | 3 |
2 files changed, 1 insertions, 14 deletions
diff --git a/core/cds/inc/cds_api.h b/core/cds/inc/cds_api.h index 15ea5da072..a5022eb69c 100644 --- a/core/cds/inc/cds_api.h +++ b/core/cds/inc/cds_api.h @@ -141,18 +141,6 @@ static inline bool cds_is_load_or_unload_in_progress(void) } /** - * cds_is_module_stop_in_progress() - Is module stopping - * - * Return: true if module stop is in progress. - */ -static inline bool cds_is_module_stop_in_progress(void) -{ - enum cds_driver_state state = cds_get_driver_state(); - - return __CDS_IS_DRIVER_STATE(state, CDS_DRIVER_STATE_MODULE_STOPPING); -} - -/** * cds_is_target_ready() - Is target is in ready state * * Return: true if target is in ready state and false otherwise. diff --git a/core/cds/src/cds_sched.c b/core/cds/src/cds_sched.c index d3448b173b..2a4a74711d 100644 --- a/core/cds/src/cds_sched.c +++ b/core/cds/src/cds_sched.c @@ -298,8 +298,7 @@ static void __cds_cpu_hotplug_notify(uint32_t cpu, bool cpu_up) if (!pSchedContext || !pSchedContext->ol_rx_thread) return; - if (cds_is_load_or_unload_in_progress() || - cds_is_module_stop_in_progress() || cds_is_driver_recovering()) + if (cds_is_load_or_unload_in_progress() || cds_is_driver_recovering()) return; cds_debug("'%s' event on CPU %u (of %d); Currently affine to CPU %u", |