2005-01-14 18:56:27

by Martin Schwidefsky

[permalink] [raw]
Subject: [patch 2/8] s390: cmm interface.

[patch 2/8] s390: cmm interface.

From: Heiko Carstens <[email protected]>

Collaborative memory management inferface changes:
- Allow cmmthread to run on every cpu.

Signed-off-by: Martin Schwidefsky <[email protected]>

diffstat:
arch/s390/mm/cmm.c | 11 -----------
1 files changed, 11 deletions(-)

diff -urN linux-2.6/arch/s390/mm/cmm.c linux-2.6-patched/arch/s390/mm/cmm.c
--- linux-2.6/arch/s390/mm/cmm.c 2004-12-24 22:35:14.000000000 +0100
+++ linux-2.6-patched/arch/s390/mm/cmm.c 2005-01-14 19:45:16.000000000 +0100
@@ -124,7 +124,6 @@
int rc;

daemonize("cmmthread");
- set_cpus_allowed(current, cpumask_of_cpu(0));
while (1) {
rc = wait_event_interruptible(cmm_thread_wait,
(cmm_pages != cmm_pages_target ||
@@ -408,14 +407,6 @@
static int
cmm_init (void)
{
- int rc;
-
- /* Prevent logical cpu 0 from being set offline. */
- rc = smp_get_cpu(cpumask_of_cpu(0));
- if (rc) {
- printk(KERN_ERR "CMM: unable to reserve cpu 0\n");
- return rc;
- }
#ifdef CONFIG_CMM_PROC
cmm_sysctl_header = register_sysctl_table(cmm_dir_table, 1);
#endif
@@ -439,8 +430,6 @@
#ifdef CONFIG_CMM_IUCV
smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target);
#endif
- /* Allow logical cpu 0 to be set offline again. */
- smp_put_cpu(0);
}

module_init(cmm_init);