mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

The driver tracks the time spent by NPU executing jobs and shares it through sysfs `npu_busy_time_us` file. It can be then used by user space applications to monitor device utilization. NPU is considered 'busy' starting with a first job submitted to firmware and ending when there is no more jobs pending/executing. Signed-off-by: Tomasz Rusinowicz <tomasz.rusinowicz@intel.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240513120431.3187212-13-jacek.lawrynowicz@linux.intel.com
14 lines
245 B
C
14 lines
245 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __IVPU_SYSFS_H__
|
|
#define __IVPU_SYSFS_H__
|
|
|
|
#include "ivpu_drv.h"
|
|
|
|
void ivpu_sysfs_init(struct ivpu_device *vdev);
|
|
|
|
#endif /* __IVPU_SYSFS_H__ */
|