linux/drivers/cpuidle/cpuidle-haltpoll.c

// SPDX-License-Identifier: GPL-2.0
/*
 * cpuidle driver for haltpoll governor.
 *
 * Copyright 2019 Red Hat, Inc. and/or its affiliates.
 *
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 * the COPYING file in the top-level directory.
 *
 * Authors: Marcelo Tosatti <[email protected]>
 */

#include <linux/init.h>
#include <linux/cpu.h>
#include <linux/cpuidle.h>
#include <linux/module.h>
#include <linux/sched/idle.h>
#include <linux/kvm_para.h>
#include <linux/cpuidle_haltpoll.h>

static bool force __read_mostly;
module_param(force, bool, 0444);
MODULE_PARM_DESC();

static struct cpuidle_device __percpu *haltpoll_cpuidle_devices;
static enum cpuhp_state haltpoll_hp_state;

static __cpuidle int default_enter_idle(struct cpuidle_device *dev,
					struct cpuidle_driver *drv, int index)
{}

static struct cpuidle_driver haltpoll_driver =;

static int haltpoll_cpu_online(unsigned int cpu)
{}

static int haltpoll_cpu_offline(unsigned int cpu)
{}

static void haltpoll_uninit(void)
{}

static bool haltpoll_want(void)
{}

static int __init haltpoll_init(void)
{}

static void __exit haltpoll_exit(void)
{}

module_init();
module_exit(haltpoll_exit);
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();