/[vps]/vserver-sources/2.0.1-r1/4913_vs2.0.1-2.6.15-misc-fixes.patch
Gentoo

Contents of /vserver-sources/2.0.1-r1/4913_vs2.0.1-2.6.15-misc-fixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 180 - (show annotations) (download)
Tue Jan 3 12:48:18 2006 UTC (8 years, 11 months ago) by phreak
File size: 1793 byte(s)
Initial version for 2.6.15-vs2.0.1; Just need to wait a bit for the genpatch-people
1 Index: vs2.0.1-2.6.15/include/linux/sched.h
2 ===================================================================
3 --- vs2.0.1-2.6.15.orig/include/linux/sched.h
4 +++ vs2.0.1-2.6.15/include/linux/sched.h
5 @@ -258,27 +258,23 @@ extern void arch_unmap_area_topdown(stru
6 */
7 #ifdef ATOMIC64_INIT
8 typedef atomic64_t mm_counter_t;
9 -#define __set_mm_counter(mm, member, value) atomic64_set(&(mm)->_##member, value)
10 -#define set_mm_counter(mm, member, value) vx_ ## member ## pages64_sub((mm), \
11 - (get_mm_counter(mm, member) - value))
12 #define get_mm_counter(mm, member) ((unsigned long)atomic64_read(&(mm)->_##member))
13 -#define add_mm_counter(mm, member, value) vx_ ## member ## pages64_add((mm), (value))
14 -#define inc_mm_counter(mm, member) vx_ ## member ## pages64_inc((mm))
15 -#define dec_mm_counter(mm, member) vx_ ## member ## pages64_dec((mm))
16 +#define __set_mm_counter(mm, member, value) atomic64_set(&(mm)->_##member, value)
17 #else /* !ATOMIC64_INIT */
18 /*
19 * The counters wrap back to 0 at 2^32 * PAGE_SIZE,
20 * that is, at 16TB if using 4kB page size.
21 */
22 typedef atomic_t mm_counter_t;
23 +#define get_mm_counter(mm, member) ((unsigned long)atomic_read(&(mm)->_##member))
24 #define __set_mm_counter(mm, member, value) atomic_set(&(mm)->_##member, value)
25 +#endif /* !ATOMIC64_INIT */
26 +
27 #define set_mm_counter(mm, member, value) vx_ ## member ## pages_sub((mm), \
28 (get_mm_counter(mm, member) - value))
29 -#define get_mm_counter(mm, member) ((unsigned long)atomic_read(&(mm)->_##member))
30 #define add_mm_counter(mm, member, value) vx_ ## member ## pages_add((mm), (value))
31 #define inc_mm_counter(mm, member) vx_ ## member ## pages_inc((mm))
32 #define dec_mm_counter(mm, member) vx_ ## member ## pages_dec((mm))
33 -#endif /* !ATOMIC64_INIT */
34
35 #else /* NR_CPUS < CONFIG_SPLIT_PTLOCK_CPUS */
36 /*

  ViewVC Help
Powered by ViewVC 1.1.20