Skip to content
GitLab
  • Explore
  • Sign in
  • Register
  • xenomaixenomai
  • ipipe-x86
  • Repository
  • ipipe-x86
  • include
  • linux
  • nodemask.h
Find file Blame History Permalink
  • Christoph Lameter's avatar
    [PATCH] Replace highest_possible_node_id() with nr_node_ids · 74c7aa8b
    Christoph Lameter authored Feb 20, 2007
    
    
    highest_possible_node_id() is currently used to calculate the last possible
    node idso that the network subsystem can figure out how to size per node
    arrays.
    
    I think having the ability to determine the maximum amount of nodes in a
    system at runtime is useful but then we should name this entry
    correspondingly, it should return the number of node_ids, and the the value
    needs to be setup only once on bootup.  The node_possible_map does not
    change after bootup.
    
    This patch introduces nr_node_ids and replaces the use of
    highest_possible_node_id().  nr_node_ids is calculated on bootup when the
    page allocators pagesets are initialized.
    
    [deweerdt@free.fr: fix oops]
    Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
    Cc: Neil Brown <neilb@suse.de>
    Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
    Signed-off-by: default avatarFrederik Deweerdt <frederik.deweerdt@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    74c7aa8b

Imprint & Privacy Policy