linux/drivers/acpi/processor_driver.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * processor_driver.c - ACPI Processor Driver
 *
 *  Copyright (C) 2001, 2002 Andy Grover <[email protected]>
 *  Copyright (C) 2001, 2002 Paul Diefenbaugh <[email protected]>
 *  Copyright (C) 2004       Dominik Brodowski <[email protected]>
 *  Copyright (C) 2004  Anil S Keshavamurthy <[email protected]>
 *  			- Added processor hotplug support
 *  Copyright (C) 2013, Intel Corporation
 *                      Rafael J. Wysocki <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/cpu.h>
#include <linux/cpuidle.h>
#include <linux/slab.h>
#include <linux/acpi.h>

#include <acpi/processor.h>

#include "internal.h"

#define ACPI_PROCESSOR_NOTIFY_PERFORMANCE
#define ACPI_PROCESSOR_NOTIFY_POWER
#define ACPI_PROCESSOR_NOTIFY_THROTTLING
#define ACPI_PROCESSOR_NOTIFY_HIGEST_PERF_CHANGED

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

static int acpi_processor_stop(struct device *dev);

static const struct acpi_device_id processor_device_ids[] =;
MODULE_DEVICE_TABLE(acpi, processor_device_ids);

static struct device_driver acpi_processor_driver =;

static void acpi_processor_notify(acpi_handle handle, u32 event, void *data)
{}

static int __acpi_processor_start(struct acpi_device *device);

static int acpi_soft_cpu_online(unsigned int cpu)
{}

static int acpi_soft_cpu_dead(unsigned int cpu)
{}

#ifdef CONFIG_ACPI_CPU_FREQ_PSS
static void acpi_pss_perf_init(struct acpi_processor *pr)
{}
#else
static inline void acpi_pss_perf_init(struct acpi_processor *pr) {}
#endif /* CONFIG_ACPI_CPU_FREQ_PSS */

static int __acpi_processor_start(struct acpi_device *device)
{}

static int acpi_processor_stop(struct device *dev)
{}

bool acpi_processor_cpufreq_init;

static int acpi_processor_notifier(struct notifier_block *nb,
				   unsigned long event, void *data)
{}

static struct notifier_block acpi_processor_notifier_block =;

/*
 * We keep the driver loaded even when ACPI is not running.
 * This is needed for the powernow-k8 driver, that works even without
 * ACPI, but needs symbols from this driver
 */
static enum cpuhp_state hp_online;
static int __init acpi_processor_driver_init(void)
{}

static void __exit acpi_processor_driver_exit(void)
{}

module_init();
module_exit(acpi_processor_driver_exit);

MODULE_ALIAS();