• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * zcache/ramster.h
4  *
5  * Placeholder to resolve ramster references when !CONFIG_RAMSTER
6  * Real ramster.h lives in ramster subdirectory.
7  *
8  * Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
9  */
10 
11 #ifndef _ZCACHE_RAMSTER_H_
12 #define _ZCACHE_RAMSTER_H_
13 
14 #ifdef CONFIG_RAMSTER
15 #include "ramster/ramster.h"
16 #else
ramster_init(bool x,bool y,bool z,bool w)17 static inline void ramster_init(bool x, bool y, bool z, bool w)
18 {
19 }
20 
ramster_register_pamops(struct tmem_pamops * p)21 static inline void ramster_register_pamops(struct tmem_pamops *p)
22 {
23 }
24 
ramster_remotify_pageframe(bool b)25 static inline int ramster_remotify_pageframe(bool b)
26 {
27 	return 0;
28 }
29 
ramster_pampd_free(void * v,struct tmem_pool * p,struct tmem_oid * o,uint32_t u,bool b)30 static inline void *ramster_pampd_free(void *v, struct tmem_pool *p,
31 			struct tmem_oid *o, uint32_t u, bool b)
32 {
33 	return NULL;
34 }
35 
ramster_do_preload_flnode(struct tmem_pool * p)36 static inline int ramster_do_preload_flnode(struct tmem_pool *p)
37 {
38 	return -1;
39 }
40 
pampd_is_remote(void * v)41 static inline bool pampd_is_remote(void *v)
42 {
43 	return false;
44 }
45 
ramster_count_foreign_pages(bool b,int i)46 static inline void ramster_count_foreign_pages(bool b, int i)
47 {
48 }
49 
ramster_cpu_up(int cpu)50 static inline void ramster_cpu_up(int cpu)
51 {
52 }
53 
ramster_cpu_down(int cpu)54 static inline void ramster_cpu_down(int cpu)
55 {
56 }
57 #endif
58 
59 #endif /* _ZCACHE_RAMSTER_H */
60