• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __GCMA_SYSFS_H__
3 #define __GCMA_SYSFS_H__
4 
5 #ifdef CONFIG_GCMA_SYSFS
6 void gcma_stat_inc(enum gcma_stat_type type);
7 void gcma_stat_dec(enum gcma_stat_type type);
8 void gcma_stat_add(enum gcma_stat_type type, unsigned long delta);
9 void gcma_stat_sub(enum gcma_stat_type type, unsigned long delta);
10 #else /* CONFIG_GCMA_SYSFS */
gcma_stat_inc(enum gcma_stat_type type)11 static inline void gcma_stat_inc(enum gcma_stat_type type) {}
gcma_stat_dec(enum gcma_stat_type type)12 static inline void gcma_stat_dec(enum gcma_stat_type type) {}
gcma_stat_add(enum gcma_stat_type type,unsigned long delta)13 static inline void gcma_stat_add(enum gcma_stat_type type,
14 				 unsigned long delta) {}
gcma_stat_sub(enum gcma_stat_type type,unsigned long delta)15 static inline void gcma_stat_sub(enum gcma_stat_type type,
16 				 unsigned long delta) {}
17 #endif /* CONFIG_GCMA_SYSFS */
18 
19 #endif
20