mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-28 07:37:40 +00:00

Follow what's done for the other headers, with the types split into a separate header that can be included by other *_types.h headers. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241114152148.572447-5-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
26 lines
493 B
C
26 lines
493 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_STATS_H_
|
|
#define _XE_GT_STATS_H_
|
|
|
|
#include "xe_gt_stats_types.h"
|
|
|
|
struct xe_gt;
|
|
struct drm_printer;
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p);
|
|
void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr);
|
|
#else
|
|
static inline void
|
|
xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id,
|
|
int incr)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
#endif
|