[patch 2/8] s390: cmm interface.

From: Martin Schwidefsky
Date: Fri Jan 14 2005 - 14:00:38 EST


[patch 2/8] s390: cmm interface.

From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

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

Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/