diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-05-26 17:27:11 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-05-26 17:27:10 -0400 |
commit | cf9daf4a735acaa5ff5967bb1b3a5e3b3578c32a (patch) | |
tree | 8ef7707be819c491f191e4dd559f839a078ab0f6 | |
parent | db705e831ae33fbbeeacf4bb527e0b17de3d6e68 (diff) |
[S390] cmm: get rid of CMM_PROC config option
All distros have this option switched on, so lets get rid of at least
one of the tons of config options that are available.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/Kconfig | 7 | ||||
-rw-r--r-- | arch/s390/mm/cmm.c | 9 |
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 79d0ca086820..149c9d8208da 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -479,13 +479,6 @@ config CMM | |||
479 | Everybody who wants to run Linux under VM should select this | 479 | Everybody who wants to run Linux under VM should select this |
480 | option. | 480 | option. |
481 | 481 | ||
482 | config CMM_PROC | ||
483 | bool "/proc interface to cooperative memory management" | ||
484 | depends on CMM | ||
485 | help | ||
486 | Select this option to enable the /proc interface to the | ||
487 | cooperative memory management. | ||
488 | |||
489 | config CMM_IUCV | 482 | config CMM_IUCV |
490 | bool "IUCV special message interface to cooperative memory management" | 483 | bool "IUCV special message interface to cooperative memory management" |
491 | depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) | 484 | depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) |
diff --git a/arch/s390/mm/cmm.c b/arch/s390/mm/cmm.c index fb584aa5c2c6..eb6a2ef5f82e 100644 --- a/arch/s390/mm/cmm.c +++ b/arch/s390/mm/cmm.c | |||
@@ -248,8 +248,6 @@ static int cmm_skip_blanks(char *cp, char **endp) | |||
248 | return str != cp; | 248 | return str != cp; |
249 | } | 249 | } |
250 | 250 | ||
251 | #ifdef CONFIG_CMM_PROC | ||
252 | |||
253 | static struct ctl_table cmm_table[]; | 251 | static struct ctl_table cmm_table[]; |
254 | 252 | ||
255 | static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer, | 253 | static int cmm_pages_handler(ctl_table *ctl, int write, void __user *buffer, |
@@ -356,7 +354,6 @@ static struct ctl_table cmm_dir_table[] = { | |||
356 | }, | 354 | }, |
357 | { } | 355 | { } |
358 | }; | 356 | }; |
359 | #endif | ||
360 | 357 | ||
361 | #ifdef CONFIG_CMM_IUCV | 358 | #ifdef CONFIG_CMM_IUCV |
362 | #define SMSG_PREFIX "CMM" | 359 | #define SMSG_PREFIX "CMM" |
@@ -434,11 +431,9 @@ static int cmm_init(void) | |||
434 | { | 431 | { |
435 | int rc = -ENOMEM; | 432 | int rc = -ENOMEM; |
436 | 433 | ||
437 | #ifdef CONFIG_CMM_PROC | ||
438 | cmm_sysctl_header = register_sysctl_table(cmm_dir_table); | 434 | cmm_sysctl_header = register_sysctl_table(cmm_dir_table); |
439 | if (!cmm_sysctl_header) | 435 | if (!cmm_sysctl_header) |
440 | goto out_sysctl; | 436 | goto out_sysctl; |
441 | #endif | ||
442 | #ifdef CONFIG_CMM_IUCV | 437 | #ifdef CONFIG_CMM_IUCV |
443 | rc = smsg_register_callback(SMSG_PREFIX, cmm_smsg_target); | 438 | rc = smsg_register_callback(SMSG_PREFIX, cmm_smsg_target); |
444 | if (rc < 0) | 439 | if (rc < 0) |
@@ -465,10 +460,8 @@ out_oom_notify: | |||
465 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); | 460 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); |
466 | out_smsg: | 461 | out_smsg: |
467 | #endif | 462 | #endif |
468 | #ifdef CONFIG_CMM_PROC | ||
469 | unregister_sysctl_table(cmm_sysctl_header); | 463 | unregister_sysctl_table(cmm_sysctl_header); |
470 | out_sysctl: | 464 | out_sysctl: |
471 | #endif | ||
472 | del_timer_sync(&cmm_timer); | 465 | del_timer_sync(&cmm_timer); |
473 | return rc; | 466 | return rc; |
474 | } | 467 | } |
@@ -476,9 +469,7 @@ module_init(cmm_init); | |||
476 | 469 | ||
477 | static void cmm_exit(void) | 470 | static void cmm_exit(void) |
478 | { | 471 | { |
479 | #ifdef CONFIG_CMM_PROC | ||
480 | unregister_sysctl_table(cmm_sysctl_header); | 472 | unregister_sysctl_table(cmm_sysctl_header); |
481 | #endif | ||
482 | #ifdef CONFIG_CMM_IUCV | 473 | #ifdef CONFIG_CMM_IUCV |
483 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); | 474 | smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); |
484 | #endif | 475 | #endif |