Deleted Added
full compact
vm_pageout.h (12423) vm_pageout.h (12453)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 47 unchanged lines hidden (view full) ---

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 47 unchanged lines hidden (view full) ---

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
64 * $Id: vm_pageout.h,v 1.15 1995/11/05 20:46:03 dyson Exp $
64 * $Id: vm_pageout.h,v 1.16 1995/11/20 12:19:22 phk Exp $
65 */
66
67#ifndef _VM_VM_PAGEOUT_H_
68#define _VM_VM_PAGEOUT_H_
69
70/*
71 * Header file for pageout daemon.
72 */

--- 13 unchanged lines hidden (view full) ---

86/*
87 * Exported routines.
88 */
89
90/*
91 * Signal pageout-daemon and wait for it.
92 */
93
65 */
66
67#ifndef _VM_VM_PAGEOUT_H_
68#define _VM_VM_PAGEOUT_H_
69
70/*
71 * Header file for pageout daemon.
72 */

--- 13 unchanged lines hidden (view full) ---

86/*
87 * Exported routines.
88 */
89
90/*
91 * Signal pageout-daemon and wait for it.
92 */
93
94static void pagedaemon_wakeup __P((void));
94static inline void
95pagedaemon_wakeup()
96{
97 if (!vm_pages_needed && curproc != pageproc) {
98 vm_pages_needed++;
99 wakeup(&vm_pages_needed);
100 }
101}
102
103#define VM_WAIT vm_wait()
104
95static inline void
96pagedaemon_wakeup()
97{
98 if (!vm_pages_needed && curproc != pageproc) {
99 vm_pages_needed++;
100 wakeup(&vm_pages_needed);
101 }
102}
103
104#define VM_WAIT vm_wait()
105
106static void vm_wait __P((void));
105static inline void
106vm_wait()
107{
108 int s;
109
110 s = splhigh();
111 if (curproc == pageproc) {
112 vm_pageout_pages_needed = 1;

--- 20 unchanged lines hidden ---
107static inline void
108vm_wait()
109{
110 int s;
111
112 s = splhigh();
113 if (curproc == pageproc) {
114 vm_pageout_pages_needed = 1;

--- 20 unchanged lines hidden ---