ANDROID: vendor_hooks: Add hook in wakeup functionality

Need this vendor hook to support wakeup functionality
for sdio cards.

Bug: 343311916
Change-Id: I1d1a34d6d02f4558edf56eccdd09df57d6232c05
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Signed-off-by: Kamasali Satyanarayan <quic_kamasali@quicinc.com>
This commit is contained in:
Kamasali Satyanarayan 2022-05-05 16:52:04 +05:30 committed by Carlos Llamas
parent b7bdc38ae6
commit 773b49c99f
3 changed files with 11 additions and 0 deletions

View File

@ -394,3 +394,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mark_page_accessed);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_madvise_cold_pageout_skip);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_psi_event);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_psi_group);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_sdio_pm_flag_set);

View File

@ -16,6 +16,8 @@
#include <linux/mmc/sdio_func.h>
#include <linux/mmc/sdio_ids.h>
#include <trace/hooks/mmc.h>
#include "core.h"
#include "card.h"
#include "host.h"
@ -1116,6 +1118,8 @@ out:
mmc_release_host(host);
host->pm_flags &= ~MMC_PM_KEEP_POWER;
trace_android_vh_mmc_sdio_pm_flag_set(host);
return err;
}

View File

@ -8,6 +8,8 @@
#include <trace/hooks/vendor_hooks.h>
struct mmc_card;
struct mmc_queue;
struct blk_mq_queue_data;
struct mmc_host;
/*
* Following tracepoints are not exported in tracefs and provide a
@ -17,6 +19,10 @@ DECLARE_HOOK(android_vh_mmc_update_mmc_queue,
TP_PROTO(struct mmc_card *card, struct mmc_queue *mq),
TP_ARGS(card, mq));
DECLARE_HOOK(android_vh_mmc_sdio_pm_flag_set,
TP_PROTO(struct mmc_host *host),
TP_ARGS(host));
#endif /* _TRACE_HOOK_MMC_H */
/* This part must be outside protection */
#include <trace/define_trace.h>