diff options
author | neal <neal> | 2008-02-13 10:29:54 +0000 |
---|---|---|
committer | neal <neal> | 2008-02-13 10:29:54 +0000 |
commit | 9972c76cfd4776d4f5e4ab1362aac2792fc9d879 (patch) | |
tree | a49c633ba925a599aa8f4a177100d389f0bebf92 /hieronymus | |
parent | 6db1b9e2653a64be307027dc3047fd5bed21d693 (diff) |
2008-02-13 Neal H. Walfield <neal@gnu.org>
* hieronymus.c (main): Don't pass ACTIVITY_POLICY_VOID to
activity_alloc. Build up a policy based on the configuration and
pass that instead.
(activity_alloc): Include ACTIVITY_POLICY_SIBLING_REL_SET in the
call to rm_activity_policy.
Diffstat (limited to 'hieronymus')
-rw-r--r-- | hieronymus/ChangeLog | 8 | ||||
-rw-r--r-- | hieronymus/hieronymus.c | 11 |
2 files changed, 16 insertions, 3 deletions
diff --git a/hieronymus/ChangeLog b/hieronymus/ChangeLog index 940f068..824fb24 100644 --- a/hieronymus/ChangeLog +++ b/hieronymus/ChangeLog @@ -1,5 +1,13 @@ 2008-02-13 Neal H. Walfield <neal@gnu.org> + * hieronymus.c (main): Don't pass ACTIVITY_POLICY_VOID to + activity_alloc. Build up a policy based on the configuration and + pass that instead. + (activity_alloc): Include ACTIVITY_POLICY_SIBLING_REL_SET in the + call to rm_activity_policy. + +2008-02-13 Neal H. Walfield <neal@gnu.org> + * Makefile.am ($(addsuffix .S, $(files))): Add a dependency on the binary. When invoking CPP, define BINARY to the calculated location of the binary. diff --git a/hieronymus/hieronymus.c b/hieronymus/hieronymus.c index 7991bfa..25d9095 100644 --- a/hieronymus/hieronymus.c +++ b/hieronymus/hieronymus.c @@ -38,7 +38,7 @@ struct module { const char *name; int priority; - int share; + int weight; const char *commandline; char *start; char *end; @@ -64,7 +64,8 @@ activity_alloc (struct activity_policy policy) struct activity_policy out; error_t err = rm_activity_policy (storage.addr, ACTIVITY_POLICY_STORAGE_SET - | ACTIVITY_POLICY_CHILD_REL_SET, + | ACTIVITY_POLICY_CHILD_REL_SET + | ACTIVITY_POLICY_SIBLING_REL_SET, policy, &out); if (err) panic ("Failed to set policy on activity"); @@ -90,7 +91,11 @@ main (int argc, char *argv[]) int i; for (i = 0; i < count; i ++) { - activities[i] = activity_alloc (ACTIVITY_POLICY_VOID); + struct activity_memory_policy sibling_policy + = ACTIVITY_MEMORY_POLICY (modules[i].priority, modules[i].weight); + struct activity_policy policy + = ACTIVITY_POLICY (sibling_policy, ACTIVITY_MEMORY_POLICY_VOID, 0); + activities[i] = activity_alloc (policy); const char *argv[] = { modules[i].name, modules[i].commandline, NULL }; const char *env[] = { NULL }; |