GKI: remote dma_buf.ktime when debugfs is disabled
dma_buf.ktime is not used when debugfs is disabled. Remove it when debugfs is disabled. Bug: 150611569 Test: build Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I68a05f5e85b2ffe7228debe5e939b065a8cbfa59
This commit is contained in:
parent
4725b48f9c
commit
6eede8c64f
2 changed files with 4 additions and 0 deletions
|
@ -637,7 +637,9 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
|
|||
init_waitqueue_head(&dmabuf->poll);
|
||||
dmabuf->cb_excl.poll = dmabuf->cb_shared.poll = &dmabuf->poll;
|
||||
dmabuf->cb_excl.active = dmabuf->cb_shared.active = 0;
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
dmabuf->ktime = ktime_get();
|
||||
#endif
|
||||
atomic_set(&dmabuf->dent_count, 1);
|
||||
|
||||
if (!resv) {
|
||||
|
|
|
@ -441,7 +441,9 @@ struct dma_buf {
|
|||
const char *exp_name;
|
||||
const char *name;
|
||||
spinlock_t name_lock;
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
ktime_t ktime;
|
||||
#endif
|
||||
struct module *owner;
|
||||
struct list_head list_node;
|
||||
void *priv;
|
||||
|
|
Loading…
Reference in a new issue