Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250938
b: refs/heads/master
c: a2c8990
h: refs/heads/master
v: v3
  • Loading branch information
Michal Hocko authored and Linus Torvalds committed May 25, 2011
1 parent bfd8c95 commit 13af7ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b52fc890bece77bffb9fade69239f71384ef02b
refs/heads/master: a2c8990aed5ab000491732b07c8c4465d1b389b8
3 changes: 0 additions & 3 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1777,9 +1777,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted.

nosoftlockup [KNL] Disable the soft-lockup detector.

noswapaccount [KNL] Disable accounting of swap in memory resource
controller. (See Documentation/cgroups/memory.txt)

nosync [HW,M68K] Disables sync negotiation for all devices.

notsc [BUGS=X86-32] Disable Time Stamp Counter
Expand Down
13 changes: 3 additions & 10 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5169,19 +5169,12 @@ struct cgroup_subsys mem_cgroup_subsys = {
static int __init enable_swap_account(char *s)
{
/* consider enabled if no parameter or 1 is given */
if (!(*s) || !strcmp(s, "=1"))
if (!strcmp(s, "1"))
really_do_swap_account = 1;
else if (!strcmp(s, "=0"))
else if (!strcmp(s, "0"))
really_do_swap_account = 0;
return 1;
}
__setup("swapaccount", enable_swap_account);
__setup("swapaccount=", enable_swap_account);

static int __init disable_swap_account(char *s)
{
printk_once("noswapaccount is deprecated and will be removed in 2.6.40. Use swapaccount=0 instead\n");
enable_swap_account("=0");
return 1;
}
__setup("noswapaccount", disable_swap_account);
#endif

0 comments on commit 13af7ce

Please sign in to comment.