2011-10-20 21:52:33 +02:00
|
|
|
changeset: 23587:926febc8bd98
|
|
|
|
user: Olaf Hering <olaf@aepfle.de>
|
|
|
|
date: Fri Jun 10 10:47:16 2011 +0200
|
|
|
|
files: tools/xenpaging/xenpaging.c
|
|
|
|
description:
|
2011-05-31 19:35:29 +02:00
|
|
|
xenpaging: remove srand call
|
|
|
|
|
|
|
|
The policy uses now a linear algorithm instead of a random one.
|
|
|
|
Remove the call to srand().
|
|
|
|
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
2011-10-20 21:52:33 +02:00
|
|
|
Committed-by: Ian Jackson <ian.jackson.citrix.com>
|
|
|
|
|
2011-05-31 19:35:29 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
tools/xenpaging/xenpaging.c | 3 ---
|
|
|
|
1 file changed, 3 deletions(-)
|
|
|
|
|
2011-09-15 23:43:21 +02:00
|
|
|
Index: xen-4.1.2-testing/tools/xenpaging/xenpaging.c
|
2011-05-31 19:35:29 +02:00
|
|
|
===================================================================
|
2011-09-15 23:43:21 +02:00
|
|
|
--- xen-4.1.2-testing.orig/tools/xenpaging/xenpaging.c
|
|
|
|
+++ xen-4.1.2-testing/tools/xenpaging/xenpaging.c
|
2011-10-20 21:52:33 +02:00
|
|
|
@@ -581,9 +581,6 @@ int main(int argc, char *argv[])
|
2011-05-31 19:35:29 +02:00
|
|
|
domain_id = atoi(argv[1]);
|
|
|
|
num_pages = atoi(argv[2]);
|
|
|
|
|
|
|
|
- /* Seed random-number generator */
|
|
|
|
- srand(time(NULL));
|
|
|
|
-
|
|
|
|
/* Initialise domain paging */
|
|
|
|
paging = xenpaging_init(domain_id);
|
|
|
|
if ( paging == NULL )
|