cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rtc-core.h (866B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifdef CONFIG_RTC_INTF_DEV
      3
      4extern void __init rtc_dev_init(void);
      5extern void __exit rtc_dev_exit(void);
      6extern void rtc_dev_prepare(struct rtc_device *rtc);
      7
      8#else
      9
     10static inline void rtc_dev_init(void)
     11{
     12}
     13
     14static inline void rtc_dev_exit(void)
     15{
     16}
     17
     18static inline void rtc_dev_prepare(struct rtc_device *rtc)
     19{
     20}
     21
     22#endif
     23
     24#ifdef CONFIG_RTC_INTF_PROC
     25
     26extern void rtc_proc_add_device(struct rtc_device *rtc);
     27extern void rtc_proc_del_device(struct rtc_device *rtc);
     28
     29#else
     30
     31static inline void rtc_proc_add_device(struct rtc_device *rtc)
     32{
     33}
     34
     35static inline void rtc_proc_del_device(struct rtc_device *rtc)
     36{
     37}
     38
     39#endif
     40
     41#ifdef CONFIG_RTC_INTF_SYSFS
     42const struct attribute_group **rtc_get_dev_attribute_groups(void);
     43#else
     44static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
     45{
     46	return NULL;
     47}
     48#endif