~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/clock_cooling.h

Version: ~ [ linux-5.1-rc5 ] ~ [ linux-5.0.7 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.34 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.111 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.168 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.178 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.138 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.65 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  linux/include/linux/clock_cooling.h
  3  *
  4  *  Copyright (C) 2014 Eduardo Valentin <edubezval@gmail.com>
  5  *
  6  *  Copyright (C) 2013  Texas Instruments Inc.
  7  *  Contact:  Eduardo Valentin <eduardo.valentin@ti.com>
  8  *
  9  *  Highly based on cpu_cooling.c.
 10  *  Copyright (C) 2012  Samsung Electronics Co., Ltd(http://www.samsung.com)
 11  *  Copyright (C) 2012  Amit Daniel <amit.kachhap@linaro.org>
 12  *
 13  *  This program is free software; you can redistribute it and/or modify
 14  *  it under the terms of the GNU General Public License as published by
 15  *  the Free Software Foundation; version 2 of the License.
 16  *
 17  *  This program is distributed in the hope that it will be useful, but
 18  *  WITHOUT ANY WARRANTY; without even the implied warranty of
 19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 20  *  General Public License for more details.
 21  */
 22 
 23 #ifndef __CPU_COOLING_H__
 24 #define __CPU_COOLING_H__
 25 
 26 #include <linux/of.h>
 27 #include <linux/thermal.h>
 28 #include <linux/cpumask.h>
 29 
 30 #ifdef CONFIG_CLOCK_THERMAL
 31 /**
 32  * clock_cooling_register - function to create clock cooling device.
 33  * @dev: struct device pointer to the device used as clock cooling device.
 34  * @clock_name: string containing the clock used as cooling mechanism.
 35  */
 36 struct thermal_cooling_device *
 37 clock_cooling_register(struct device *dev, const char *clock_name);
 38 
 39 /**
 40  * clock_cooling_unregister - function to remove clock cooling device.
 41  * @cdev: thermal cooling device pointer.
 42  */
 43 void clock_cooling_unregister(struct thermal_cooling_device *cdev);
 44 
 45 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev,
 46                                       unsigned long freq);
 47 #else /* !CONFIG_CLOCK_THERMAL */
 48 static inline struct thermal_cooling_device *
 49 clock_cooling_register(struct device *dev, const char *clock_name)
 50 {
 51         return NULL;
 52 }
 53 static inline
 54 void clock_cooling_unregister(struct thermal_cooling_device *cdev)
 55 {
 56 }
 57 static inline
 58 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev,
 59                                       unsigned long freq)
 60 {
 61         return THERMAL_CSTATE_INVALID;
 62 }
 63 #endif  /* CONFIG_CLOCK_THERMAL */
 64 
 65 #endif /* __CPU_COOLING_H__ */
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp