diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 3 | ||||
-rw-r--r-- | mm/memcontrol.c | 13 |
2 files changed, 3 insertions, 13 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 7c6624e7a5cb..5438a2d7907f 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -1777,9 +1777,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
1777 | 1777 | ||
1778 | nosoftlockup [KNL] Disable the soft-lockup detector. | 1778 | nosoftlockup [KNL] Disable the soft-lockup detector. |
1779 | 1779 | ||
1780 | noswapaccount [KNL] Disable accounting of swap in memory resource | ||
1781 | controller. (See Documentation/cgroups/memory.txt) | ||
1782 | |||
1783 | nosync [HW,M68K] Disables sync negotiation for all devices. | 1780 | nosync [HW,M68K] Disables sync negotiation for all devices. |
1784 | 1781 | ||
1785 | notsc [BUGS=X86-32] Disable Time Stamp Counter | 1782 | notsc [BUGS=X86-32] Disable Time Stamp Counter |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 010f9166fa6e..d5fd3dcd3f2e 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -5169,19 +5169,12 @@ struct cgroup_subsys mem_cgroup_subsys = { | |||
5169 | static int __init enable_swap_account(char *s) | 5169 | static int __init enable_swap_account(char *s) |
5170 | { | 5170 | { |
5171 | /* consider enabled if no parameter or 1 is given */ | 5171 | /* consider enabled if no parameter or 1 is given */ |
5172 | if (!(*s) || !strcmp(s, "=1")) | 5172 | if (!strcmp(s, "1")) |
5173 | really_do_swap_account = 1; | 5173 | really_do_swap_account = 1; |
5174 | else if (!strcmp(s, "=0")) | 5174 | else if (!strcmp(s, "0")) |
5175 | really_do_swap_account = 0; | 5175 | really_do_swap_account = 0; |
5176 | return 1; | 5176 | return 1; |
5177 | } | 5177 | } |
5178 | __setup("swapaccount", enable_swap_account); | 5178 | __setup("swapaccount=", enable_swap_account); |
5179 | 5179 | ||
5180 | static int __init disable_swap_account(char *s) | ||
5181 | { | ||
5182 | printk_once("noswapaccount is deprecated and will be removed in 2.6.40. Use swapaccount=0 instead\n"); | ||
5183 | enable_swap_account("=0"); | ||
5184 | return 1; | ||
5185 | } | ||
5186 | __setup("noswapaccount", disable_swap_account); | ||
5187 | #endif | 5180 | #endif |