qcacmn: Add qdf API for delayed workqueue

Add qdf API for delayed workqueue

Change-Id: Ic67f200ac6c9749b088bbd0769491d22583eed11
CRs-Fixed: 2738374
This commit is contained in:
Jayachandran Sreekumaran
2020-07-22 16:12:13 +05:30
committed by snandini
parent acd85ae613
commit 3be1a0a167
3 changed files with 41 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2019-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
@@ -20,6 +20,7 @@
#include "qdf_status.h"
#include "qdf_trace.h"
#include "qdf_types.h"
#include "qdf_module.h"
#ifdef WLAN_DELAYED_WORK_DEBUG
#include "qdf_tracker.h"
@@ -98,6 +99,8 @@ QDF_STATUS __qdf_delayed_work_create(struct qdf_delayed_work *dwork,
return QDF_STATUS_SUCCESS;
}
qdf_export_symbol(__qdf_delayed_work_create);
void __qdf_delayed_work_destroy(struct qdf_delayed_work *dwork,
const char *func, uint32_t line)
{
@@ -105,13 +108,25 @@ void __qdf_delayed_work_destroy(struct qdf_delayed_work *dwork,
qdf_dwork_dbg_untrack(dwork, func, line);
}
bool qdf_delayed_work_start(struct qdf_delayed_work *dwork, uint32_t msec)
qdf_export_symbol(__qdf_delayed_work_destroy);
bool __qdf_delayed_work_start(struct qdf_delayed_work *dwork, uint32_t msec)
{
return schedule_delayed_work(&dwork->dwork, msecs_to_jiffies(msec));
}
bool qdf_delayed_work_stop_sync(struct qdf_delayed_work *dwork)
qdf_export_symbol(__qdf_delayed_work_start);
bool __qdf_delayed_work_stop_sync(struct qdf_delayed_work *dwork)
{
return cancel_delayed_work_sync(&dwork->dwork);
}
qdf_export_symbol(__qdf_delayed_work_stop_sync);
bool __qdf_delayed_work_stop(struct qdf_delayed_work *dwork)
{
return cancel_delayed_work(&dwork->dwork);
}
qdf_export_symbol(__qdf_delayed_work_stop);