• Balbir Singh's avatar
    memory controller: make memory resource control aware of boot options · 4077960e
    Balbir Singh authored
    A boot option for the memory controller was discussed on lkml.  It is a good
    idea to add it, since it saves memory for people who want to turn off the
    memory controller.
    
    By default the option is on for the following two reasons:
    
    1. It provides compatibility with the current scheme where the memory
       controller turns on if the config option is enabled
    2. It allows for wider testing of the memory controller, once the config
       option is enabled
    
    We still allow the create, destroy callbacks to succeed, since they are not
    aware of boot options.  We do not populate the directory will memory resource
    controller specific files.
    Signed-off-by: default avatarBalbir Singh <balbir@linux.vnet.ibm.com>
    Cc: Paul Menage <menage@google.com>
    Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
    Cc: Pavel Emelyanov <xemul@openvz.org>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: Hugh Dickins <hugh@veritas.com>
    Cc: Sudhir Kumar <skumar@linux.vnet.ibm.com>
    Cc: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
    Cc: David Rientjes <rientjes@google.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    4077960e
memcontrol.c 27.5 KB