• Siddha, Suresh B's avatar
    [PATCH] intel_cacheinfo: remove MAX_CACHE_LEAVES limit · d16aafff
    Siddha, Suresh B authored
    Initial internal version of Venki's cpuid(4) deterministic cache parameter
    identification patch used static arrays of size MAX_CACHE_LEAVES.  Final patch
    which made to the base used dynamic array allocation, with this
    MAX_CACHE_LEAVES limit hunk still in place.
    
    cpuid(4) already has a mechanism to find out the number of cache levels
    implemented and there is no need for this hardcoded MAX_CACHE_LEAVES limit.
    
    So remove the MAX_CACHE_LEAVES limit from the routine which calculates the
    number of cache levels using cpuid(4)
    Signed-off-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
    Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d16aafff
intel_cacheinfo.c 16.2 KB