/* * thermal.c - Generic Thermal Management Sysfs support. * * Copyright (C) 2008 Intel Corp * Copyright (C) 2008 Zhang Rui <rui.zhang@intel.com> * Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. */#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt#include<linux/module.h>#include<linux/device.h>#include<linux/err.h>#include<linux/slab.h>#include<linux/kdev_t.h>#include<linux/idr.h>#include<linux/thermal.h>#include<linux/reboot.h>#include<linux/string.h>#include<linux/of.h>#include<net/netlink.h>#include<net/genetlink.h>#include<linux/suspend.h>#define CREATE_TRACE_POINTS#include<trace/events/thermal.h>#include"thermal_core.h"#include"thermal_hwmon.h"MODULE_AUTHOR("Zhang Rui");MODULE_DESCRIPTION("Generic thermal management sysfs support");MODULE_LICENSE("GPL v2");staticDEFINE_IDA(thermal_tz_ida);staticDEFINE_IDA(thermal_cdev_ida);staticLIST_HEAD(thermal_tz_list);staticLIST_HEAD(thermal_cdev_list);staticLIST_HEAD(thermal_governor_list);static