#include <asm/tsc.h>
#include <linux/cpufreq.h>
#include "i915_drv.h"
#include "i915_reg.h"
#include "intel_gt.h"
#include "intel_llc.h"
#include "intel_mchbar_regs.h"
#include "intel_pcode.h"
#include "intel_rps.h"
struct ia_constants { … };
static struct intel_gt *llc_to_gt(struct intel_llc *llc)
{ … }
static unsigned int cpu_max_MHz(void)
{ … }
static bool get_ia_constants(struct intel_llc *llc,
struct ia_constants *consts)
{ … }
static void calc_ia_freq(struct intel_llc *llc,
unsigned int gpu_freq,
const struct ia_constants *consts,
unsigned int *out_ia_freq,
unsigned int *out_ring_freq)
{ … }
static void gen6_update_ring_freq(struct intel_llc *llc)
{ … }
void intel_llc_enable(struct intel_llc *llc)
{ … }
void intel_llc_disable(struct intel_llc *llc)
{ … }
#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST)
#include "selftest_llc.c"
#endif