linux/drivers/thermal/intel/intel_tcc_cooling.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * cooling device driver that activates the processor throttling by
 * programming the TCC Offset register.
 * Copyright (c) 2021, Intel Corporation.
 */
#define pr_fmt(fmt)

#include <linux/device.h>
#include <linux/intel_tcc.h>
#include <linux/module.h>
#include <linux/thermal.h>
#include <asm/cpu_device_id.h>

#define TCC_PROGRAMMABLE
#define TCC_LOCKED

static struct thermal_cooling_device *tcc_cdev;

static int tcc_get_max_state(struct thermal_cooling_device *cdev, unsigned long
			     *state)
{}

static int tcc_get_cur_state(struct thermal_cooling_device *cdev, unsigned long
			     *state)
{}

static int tcc_set_cur_state(struct thermal_cooling_device *cdev, unsigned long
			     state)
{}

static const struct thermal_cooling_device_ops tcc_cooling_ops =;

static const struct x86_cpu_id tcc_ids[] __initconst =;

MODULE_DEVICE_TABLE(x86cpu, tcc_ids);

static int __init tcc_cooling_init(void)
{}

module_init()

static void __exit tcc_cooling_exit(void)
{}

module_exit()

MODULE_IMPORT_NS();
MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();