Lines Matching refs:shared
499 long int shared = *shared_ptr; in get_common_cache_info() local
510 if (shared <= 0) in get_common_cache_info()
514 shared = core; in get_common_cache_info()
681 if (shared > 0 && threads > 0) in get_common_cache_info()
682 shared /= threads; in get_common_cache_info()
690 shared += core; in get_common_cache_info()
693 *shared_ptr = shared; in get_common_cache_info()
706 long int shared = -1; in dl_init_cacheinfo() local
726 shared = handle_intel (_SC_LEVEL3_CACHE_SIZE, cpu_features); in dl_init_cacheinfo()
742 level3_cache_size = shared; in dl_init_cacheinfo()
750 get_common_cache_info (&shared, &threads, core); in dl_init_cacheinfo()
756 shared = handle_zhaoxin (_SC_LEVEL3_CACHE_SIZE); in dl_init_cacheinfo()
766 level3_cache_size = shared; in dl_init_cacheinfo()
770 get_common_cache_info (&shared, &threads, core); in dl_init_cacheinfo()
776 shared = handle_amd (_SC_LEVEL3_CACHE_SIZE); in dl_init_cacheinfo()
786 level3_cache_size = shared; in dl_init_cacheinfo()
793 if (shared <= 0) in dl_init_cacheinfo()
795 shared = core; in dl_init_cacheinfo()
819 shared /= threads; in dl_init_cacheinfo()
830 shared *= threads_per_ccx; in dl_init_cacheinfo()
835 shared += core; in dl_init_cacheinfo()
863 unsigned long int non_temporal_threshold = shared * 3 / 4; in dl_init_cacheinfo()
915 shared = tunable_size; in dl_init_cacheinfo()
933 TUNABLE_SET_WITH_BOUNDS (x86_shared_cache_size, shared, 0, SIZE_MAX); in dl_init_cacheinfo()
961 cpu_features->shared_cache_size = shared; in dl_init_cacheinfo()