#define pr_fmt(fmt) …
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <asm/msr.h>
#include <asm/tsc.h>
#include "speedstep-lib.h"
#define PFX …
#ifdef CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK
static int relaxed_check;
#else
#define relaxed_check …
#endif
static unsigned int pentium3_get_frequency(enum speedstep_processor processor)
{ … }
static unsigned int pentiumM_get_frequency(void)
{ … }
static unsigned int pentium_core_get_frequency(void)
{ … }
static unsigned int pentium4_get_frequency(void)
{ … }
unsigned int speedstep_get_frequency(enum speedstep_processor processor)
{ … }
EXPORT_SYMBOL_GPL(…);
enum speedstep_processor speedstep_detect_processor(void)
{ … }
EXPORT_SYMBOL_GPL(…);
unsigned int speedstep_get_freqs(enum speedstep_processor processor,
unsigned int *low_speed,
unsigned int *high_speed,
unsigned int *transition_latency,
void (*set_state) (unsigned int state))
{ … }
EXPORT_SYMBOL_GPL(…);
#ifdef CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK
module_param(relaxed_check, int, 0444);
MODULE_PARM_DESC(relaxed_check,
"Don't do all checks for speedstep capability.");
#endif
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;