diff options
author | Steven Laver <lavers@google.com> | 2019-11-09 19:04:59 -0800 |
---|---|---|
committer | Steven Laver <lavers@google.com> | 2019-11-09 19:04:59 -0800 |
commit | 19c0c9cd4892927004dac3252b67aac89e462c5c (patch) | |
tree | 7e1f345b44a6e9442c89789a1632bce8f35e57df /linker/linker_main.cpp | |
parent | 38a2028b52982e46a8dba510b9a9291487ee764e (diff) | |
parent | c640ebfa3afc4c4aadeb38d287028d0d3b2b1308 (diff) |
Merge RP1A.191031.003
Change-Id: I88a5da486e0ed587840daf17126c6dcf18bfa204
Diffstat (limited to 'linker/linker_main.cpp')
-rw-r--r-- | linker/linker_main.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/linker/linker_main.cpp b/linker/linker_main.cpp index fd1592d33..bea2e3c82 100644 --- a/linker/linker_main.cpp +++ b/linker/linker_main.cpp @@ -496,31 +496,7 @@ static ElfW(Addr) linker_main(KernelArgumentBlock& args, const char* exe_to_load #if STATS print_linker_stats(); #endif -#if COUNT_PAGES - { - unsigned n; - unsigned i; - unsigned count = 0; - for (n = 0; n < 4096; n++) { - if (bitmask[n]) { - unsigned x = bitmask[n]; -#if defined(__LP64__) - for (i = 0; i < 32; i++) { -#else - for (i = 0; i < 8; i++) { -#endif - if (x & 1) { - count++; - } - x >>= 1; - } - } - } - PRINT("PAGES MODIFIED: %s: %d (%dKB)", g_argv[0], count, count * 4); - } -#endif - -#if TIMING || STATS || COUNT_PAGES +#if TIMING || STATS fflush(stdout); #endif |