Merge branches 'acpi-soc', 'acpi-misc', 'acpi-pci' and 'device-properties'
[deliverable/linux.git] / arch / x86 / kernel / cpu / bugs_64.c
CommitLineData
c169859d 1/*
c169859d
JF
2 * Copyright (C) 1994 Linus Torvalds
3 * Copyright (C) 2000 SuSE
c169859d
JF
4 */
5
6#include <linux/kernel.h>
57decbda 7#include <linux/init.h>
c169859d 8#include <asm/alternative.h>
dd22a682 9#include <asm/bugs.h>
c169859d 10#include <asm/processor.h>
0a203a4c 11#include <asm/mtrr.h>
f5c24a7f 12#include <asm/cacheflush.h>
c169859d
JF
13
14void __init check_bugs(void)
15{
5745abfe 16 identify_boot_cpu();
c169859d 17#if !defined(CONFIG_SMP)
1b74dde7 18 pr_info("CPU: ");
c169859d
JF
19 print_cpu_info(&boot_cpu_data);
20#endif
21 alternative_instructions();
f5c24a7f
AK
22
23 /*
24 * Make sure the first 2MB area is not mapped by huge pages
25 * There are typically fixed size MTRRs in there and overlapping
26 * MTRRs into large pages causes slow downs.
27 *
28 * Right now we don't do that with gbpages because there seems
29 * very little benefit for that case.
30 */
31 if (!direct_gbpages)
32 set_memory_4k((unsigned long)__va(0), 1);
c169859d 33}
This page took 0.670214 seconds and 5 git commands to generate.