Blame view

kernel/linux-imx6_3.14.28/include/linux/device_cooling.h 1.04 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  /*
   * Copyright (C) 2013 Freescale Semiconductor, Inc.
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2 as
   * published by the Free Software Foundation.
   *
   */
  
  #ifndef __DEVICE_THERMAL_H__
  #define __DEVICE_THERMAL_H__
  
  #include <linux/thermal.h>
  
  #ifdef CONFIG_DEVICE_THERMAL
  int register_devfreq_cooling_notifier(struct notifier_block *nb);
  int unregister_devfreq_cooling_notifier(struct notifier_block *nb);
  struct thermal_cooling_device *devfreq_cooling_register(void);
  void devfreq_cooling_unregister(struct thermal_cooling_device *cdev);
  #else
  static inline
  int register_devfreq_cooling_notifier(struct notifier_block *nb)
  {
  	return 0;
  }
  
  static inline
  int unregister_devfreq_cooling_notifier(struct notifier_block *nb)
  {
  	return 0;
  }
  
  static inline
  struct thermal_cooling_device *devfreq_cooling_register(void)
  {
  	return NULL;
  }
  
  static inline
  void devfreq_cooling_unregister(struct thermal_cooling_device *cdev)
  {
  	return;
  }
  #endif
  #endif /* __DEVICE_THERMAL_H__ */