mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-21 16:31:14 +02:00

Other driver code beyond the sysfs interface wants to know about throttling. So make the query function globally accessible. v2: Revert include order change (review feedback from Lucas) v3: Remove '_sysfs' from throttle file names and keep limit query in the same file rather than moving elsewhere (review feedback from Rodrigo). v4: Correct #include while renaming header file (review feedback from Lucas). Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240518043700.3264362-2-John.C.Harrison@Intel.com
18 lines
311 B
C
18 lines
311 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_THROTTLE_H_
|
|
#define _XE_GT_THROTTLE_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_gt;
|
|
|
|
int xe_gt_throttle_init(struct xe_gt *gt);
|
|
|
|
u32 xe_gt_throttle_get_limit_reasons(struct xe_gt *gt);
|
|
|
|
#endif /* _XE_GT_THROTTLE_H_ */
|