aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/zcache/ramster.h
blob: e1f91d5a0f6a4d74f6f4864b85d16e134ae046a2 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

/*
 * zcache/ramster.h
 *
 * Placeholder to resolve ramster references when !CONFIG_RAMSTER
 * Real ramster.h lives in ramster subdirectory.
 *
 * Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
 */

#ifndef _ZCACHE_RAMSTER_H_
#define _ZCACHE_RAMSTER_H_

#ifdef CONFIG_RAMSTER_MODULE
#define CONFIG_RAMSTER
#endif

#ifdef CONFIG_RAMSTER
#include "ramster/ramster.h"
#else
static inline void ramster_init(bool x, bool y, bool z, bool w)
{
}

static inline void ramster_register_pamops(struct tmem_pamops *p)
{
}

static inline int ramster_remotify_pageframe(bool b)
{
	return 0;
}

static inline void *ramster_pampd_free(void *v, struct tmem_pool *p,
			struct tmem_oid *o, uint32_t u, bool b)
{
	return NULL;
}

static inline int ramster_do_preload_flnode(struct tmem_pool *p)
{
	return -1;
}

static inline bool pampd_is_remote(void *v)
{
	return false;
}

static inline void ramster_count_foreign_pages(bool b, int i)
{
}

static inline void ramster_cpu_up(int cpu)
{
}

static inline void ramster_cpu_down(int cpu)
{
}
#endif

#endif /* _ZCACHE_RAMSTER_H */