linux/drivers/cpufreq/cpufreq_userspace.c

// SPDX-License-Identifier: GPL-2.0-only

/*
 *  linux/drivers/cpufreq/cpufreq_userspace.c
 *
 *  Copyright (C)  2001 Russell King
 *            (C)  2002 - 2004 Dominik Brodowski <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/cpufreq.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>

struct userspace_policy {};

/**
 * cpufreq_set - set the CPU frequency
 * @policy: pointer to policy struct where freq is being set
 * @freq: target frequency in kHz
 *
 * Sets the CPU frequency to freq.
 */
static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq)
{}

static ssize_t show_speed(struct cpufreq_policy *policy, char *buf)
{}

static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy)
{}

/*
 * Any routine that writes to the policy struct will hold the "rwsem" of
 * policy struct that means it is free to free "governor_data" here.
 */
static void cpufreq_userspace_policy_exit(struct cpufreq_policy *policy)
{}

static int cpufreq_userspace_policy_start(struct cpufreq_policy *policy)
{}

static void cpufreq_userspace_policy_stop(struct cpufreq_policy *policy)
{}

static void cpufreq_userspace_policy_limits(struct cpufreq_policy *policy)
{}

static struct cpufreq_governor cpufreq_gov_userspace =;

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

#ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE
struct cpufreq_governor *cpufreq_default_governor(void)
{
	return &cpufreq_gov_userspace;
}
#endif

cpufreq_governor_init(cpufreq_gov_userspace);
cpufreq_governor_exit(cpufreq_gov_userspace);