x86: Don't include cacheinfo.c in ld.so

Since cacheinfo.c isn't used by ld.so, there is no need to include it
in ld.so.

	* sysdeps/x86/cacheinfo.c: Skip if not in libc.
This commit is contained in:
H.J. Lu 2017-05-24 06:31:16 -07:00
parent 7c1d722554
commit 9c450f6f6f
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2017-05-24 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86/cacheinfo.c: Skip if not in libc.
2017-05-24 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86/cacheinfo.c (is_intel): Removed.

View File

@ -16,6 +16,8 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#if IS_IN (libc)
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
@ -768,3 +770,5 @@ intel_bug_no_cache_info:
store becomes faster. */
__x86_shared_non_temporal_threshold = __x86_shared_cache_size * 6;
}
#endif