Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.11-rc3 59 lines 1.0 kB view raw
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 17static inline void ramster_init(bool x, bool y, bool z, bool w) 18{ 19} 20 21static inline void ramster_register_pamops(struct tmem_pamops *p) 22{ 23} 24 25static inline int ramster_remotify_pageframe(bool b) 26{ 27 return 0; 28} 29 30static 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 36static inline int ramster_do_preload_flnode(struct tmem_pool *p) 37{ 38 return -1; 39} 40 41static inline bool pampd_is_remote(void *v) 42{ 43 return false; 44} 45 46static inline void ramster_count_foreign_pages(bool b, int i) 47{ 48} 49 50static inline void ramster_cpu_up(int cpu) 51{ 52} 53 54static inline void ramster_cpu_down(int cpu) 55{ 56} 57#endif 58 59#endif /* _ZCACHE_RAMSTER_H */