summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2012-11-27 11:32:38 -0800
committerRonald G. Minnich <rminnich@gmail.com>2012-11-28 07:57:17 +0100
commit5079a0d32f2824445cf593dfbcb65598eaa97dee (patch)
tree2e6edd336c00f1f3e4937410a9be9537553702be /src/northbridge
parentacf443191bd035c26ee89c3ca56f065a5111901b (diff)
Remove assembly coded log2 function
As we move to supporting other systems we need to get rid of assembly where we can. The log2 function in src/lib is identical to the assembly one (tested for all 32-bit signed integers :-) and takes about 10 ns to run as opposed to 5ns for the non-portable assembly version. While speed is good, I think we can spare the 15 ns or so we add to boot time by using the C version only. Change-Id: Icafa565eae282c85fa5fc01b3bd1f110cd9aaa91 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/1928 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/amd/agesa/family10/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family12/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family14/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family15/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family15tn/northbridge.c2
-rw-r--r--src/northbridge/amd/amdfam10/misc_control.c2
-rw-r--r--src/northbridge/amd/amdfam10/northbridge.c2
-rw-r--r--src/northbridge/amd/amdk8/misc_control.c2
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c2
-rw-r--r--src/northbridge/amd/gx1/northbridge.c1
-rw-r--r--src/northbridge/amd/gx2/northbridge.c1
-rw-r--r--src/northbridge/amd/gx2/northbridgeinit.c1
-rw-r--r--src/northbridge/amd/lx/northbridge.c1
-rw-r--r--src/northbridge/amd/lx/northbridgeinit.c1
-rw-r--r--src/northbridge/intel/e7501/northbridge.c1
-rw-r--r--src/northbridge/intel/e7505/northbridge.c1
-rw-r--r--src/northbridge/intel/e7520/northbridge.c1
-rw-r--r--src/northbridge/intel/e7525/northbridge.c1
-rw-r--r--src/northbridge/intel/gm45/northbridge.c1
-rw-r--r--src/northbridge/intel/i3100/northbridge.c1
-rw-r--r--src/northbridge/intel/i440bx/northbridge.c1
-rw-r--r--src/northbridge/intel/i440lx/northbridge.c1
-rw-r--r--src/northbridge/intel/i5000/northbridge.c1
-rw-r--r--src/northbridge/intel/i82810/northbridge.c1
-rw-r--r--src/northbridge/intel/i82830/northbridge.c1
-rw-r--r--src/northbridge/intel/i855/northbridge.c1
-rw-r--r--src/northbridge/intel/i945/northbridge.c1
-rw-r--r--src/northbridge/intel/sandybridge/northbridge.c1
-rw-r--r--src/northbridge/intel/sch/northbridge.c1
-rw-r--r--src/northbridge/rdc/r8610/northbridge.c1
-rw-r--r--src/northbridge/via/cn400/northbridge.c2
-rw-r--r--src/northbridge/via/cn400/vga.c1
-rw-r--r--src/northbridge/via/cn700/northbridge.c2
-rw-r--r--src/northbridge/via/cn700/vga.c1
-rw-r--r--src/northbridge/via/cx700/northbridge.c1
-rw-r--r--src/northbridge/via/cx700/vga.c1
-rw-r--r--src/northbridge/via/vt8601/northbridge.c1
-rw-r--r--src/northbridge/via/vt8623/northbridge.c1
-rw-r--r--src/northbridge/via/vt8623/vga.c1
-rw-r--r--src/northbridge/via/vx800/northbridge.c1
-rw-r--r--src/northbridge/via/vx800/vga.c1
41 files changed, 11 insertions, 41 deletions
diff --git a/src/northbridge/amd/agesa/family10/northbridge.c b/src/northbridge/amd/agesa/family10/northbridge.c
index f1ed610e42..4bdc7b4fed 100644
--- a/src/northbridge/amd/agesa/family10/northbridge.c
+++ b/src/northbridge/amd/agesa/family10/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family12/northbridge.c b/src/northbridge/amd/agesa/family12/northbridge.c
index ac3f3082e7..c4b43c5ed9 100644
--- a/src/northbridge/amd/agesa/family12/northbridge.c
+++ b/src/northbridge/amd/agesa/family12/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family14/northbridge.c b/src/northbridge/amd/agesa/family14/northbridge.c
index 74473c065e..5e8d89b46d 100644
--- a/src/northbridge/amd/agesa/family14/northbridge.c
+++ b/src/northbridge/amd/agesa/family14/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family15/northbridge.c b/src/northbridge/amd/agesa/family15/northbridge.c
index 78986e4a0c..abd53b2787 100644
--- a/src/northbridge/amd/agesa/family15/northbridge.c
+++ b/src/northbridge/amd/agesa/family15/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family15tn/northbridge.c b/src/northbridge/amd/agesa/family15tn/northbridge.c
index ac605b0304..5659ac6539 100644
--- a/src/northbridge/amd/agesa/family15tn/northbridge.c
+++ b/src/northbridge/amd/agesa/family15tn/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/amdfam10/misc_control.c b/src/northbridge/amd/amdfam10/misc_control.c
index 472382c9a7..39750058b3 100644
--- a/src/northbridge/amd/amdfam10/misc_control.c
+++ b/src/northbridge/amd/amdfam10/misc_control.c
@@ -31,7 +31,7 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/amd/model_10xxx_rev.h>
#include "amdfam10.h"
diff --git a/src/northbridge/amd/amdfam10/northbridge.c b/src/northbridge/amd/amdfam10/northbridge.c
index 971051f76a..77dd138940 100644
--- a/src/northbridge/amd/amdfam10/northbridge.c
+++ b/src/northbridge/amd/amdfam10/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
diff --git a/src/northbridge/amd/amdk8/misc_control.c b/src/northbridge/amd/amdk8/misc_control.c
index cc69883007..030c9928c5 100644
--- a/src/northbridge/amd/amdk8/misc_control.c
+++ b/src/northbridge/amd/amdk8/misc_control.c
@@ -16,7 +16,7 @@
#include <device/pci_ops.h>
#include <reset.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/amd/model_fxx_rev.h>
#include "amdk8.h"
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index 4d14efabcc..2f3d778492 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -14,7 +14,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
diff --git a/src/northbridge/amd/gx1/northbridge.c b/src/northbridge/amd/gx1/northbridge.c
index fbea3b58a3..83b84e3734 100644
--- a/src/northbridge/amd/gx1/northbridge.c
+++ b/src/northbridge/amd/gx1/northbridge.c
@@ -6,7 +6,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/amd/gx1def.h>
#include <cpu/x86/cache.h>
diff --git a/src/northbridge/amd/gx2/northbridge.c b/src/northbridge/amd/gx2/northbridge.c
index 12096d85fe..80bcdf611a 100644
--- a/src/northbridge/amd/gx2/northbridge.c
+++ b/src/northbridge/amd/gx2/northbridge.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/x86/msr.h>
#include <cpu/x86/cache.h>
diff --git a/src/northbridge/amd/gx2/northbridgeinit.c b/src/northbridge/amd/gx2/northbridgeinit.c
index f51bcc6b36..09f8b00de8 100644
--- a/src/northbridge/amd/gx2/northbridgeinit.c
+++ b/src/northbridge/amd/gx2/northbridgeinit.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/amd/gx2def.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/amd/lx/northbridge.c b/src/northbridge/amd/lx/northbridge.c
index 5f98b4051e..aaaf46b207 100644
--- a/src/northbridge/amd/lx/northbridge.c
+++ b/src/northbridge/amd/lx/northbridge.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/amd/lxdef.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/amd/lx/northbridgeinit.c b/src/northbridge/amd/lx/northbridgeinit.c
index 6288608095..f883900fdf 100644
--- a/src/northbridge/amd/lx/northbridgeinit.c
+++ b/src/northbridge/amd/lx/northbridgeinit.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/amd/lxdef.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/intel/e7501/northbridge.c b/src/northbridge/intel/e7501/northbridge.c
index c70f032597..e7d7d5ddf5 100644
--- a/src/northbridge/intel/e7501/northbridge.c
+++ b/src/northbridge/intel/e7501/northbridge.c
@@ -6,7 +6,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#if CONFIG_WRITE_HIGH_TABLES
#include <cbmem.h>
diff --git a/src/northbridge/intel/e7505/northbridge.c b/src/northbridge/intel/e7505/northbridge.c
index b6d24fa98b..db0ece2519 100644
--- a/src/northbridge/intel/e7505/northbridge.c
+++ b/src/northbridge/intel/e7505/northbridge.c
@@ -6,7 +6,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "e7505.h"
#if CONFIG_WRITE_HIGH_TABLES
diff --git a/src/northbridge/intel/e7520/northbridge.c b/src/northbridge/intel/e7520/northbridge.c
index 3b92aa82f9..962e8cdda2 100644
--- a/src/northbridge/intel/e7520/northbridge.c
+++ b/src/northbridge/intel/e7520/northbridge.c
@@ -7,7 +7,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "chip.h"
#include "northbridge.h"
diff --git a/src/northbridge/intel/e7525/northbridge.c b/src/northbridge/intel/e7525/northbridge.c
index ab88899641..ceb7afa7c1 100644
--- a/src/northbridge/intel/e7525/northbridge.c
+++ b/src/northbridge/intel/e7525/northbridge.c
@@ -7,7 +7,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "chip.h"
#include "northbridge.h"
diff --git a/src/northbridge/intel/gm45/northbridge.c b/src/northbridge/intel/gm45/northbridge.c
index 8c80f86d1b..1839ec63e0 100644
--- a/src/northbridge/intel/gm45/northbridge.c
+++ b/src/northbridge/intel/gm45/northbridge.c
@@ -26,7 +26,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <boot/tables.h>
#include <arch/acpi.h>
diff --git a/src/northbridge/intel/i3100/northbridge.c b/src/northbridge/intel/i3100/northbridge.c
index db35b85a6d..d90d0b52e3 100644
--- a/src/northbridge/intel/i3100/northbridge.c
+++ b/src/northbridge/intel/i3100/northbridge.c
@@ -29,7 +29,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "chip.h"
#include "i3100.h"
diff --git a/src/northbridge/intel/i440bx/northbridge.c b/src/northbridge/intel/i440bx/northbridge.c
index 39bd6b9aca..ccd5e9cf69 100644
--- a/src/northbridge/intel/i440bx/northbridge.c
+++ b/src/northbridge/intel/i440bx/northbridge.c
@@ -6,7 +6,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <pc80/keyboard.h>
#include "northbridge.h"
diff --git a/src/northbridge/intel/i440lx/northbridge.c b/src/northbridge/intel/i440lx/northbridge.c
index 57fcfcb8a7..c75a4bbe57 100644
--- a/src/northbridge/intel/i440lx/northbridge.c
+++ b/src/northbridge/intel/i440lx/northbridge.c
@@ -27,7 +27,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <pc80/keyboard.h>
#include "northbridge.h"
diff --git a/src/northbridge/intel/i5000/northbridge.c b/src/northbridge/intel/i5000/northbridge.c
index 1548f19366..071616cf26 100644
--- a/src/northbridge/intel/i5000/northbridge.c
+++ b/src/northbridge/intel/i5000/northbridge.c
@@ -25,7 +25,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/acpi.h>
#include <cbmem.h>
diff --git a/src/northbridge/intel/i82810/northbridge.c b/src/northbridge/intel/i82810/northbridge.c
index 4c09d44d95..ed9876fa3d 100644
--- a/src/northbridge/intel/i82810/northbridge.c
+++ b/src/northbridge/intel/i82810/northbridge.c
@@ -27,7 +27,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "northbridge.h"
#include "i82810.h"
diff --git a/src/northbridge/intel/i82830/northbridge.c b/src/northbridge/intel/i82830/northbridge.c
index 95ac2edd5d..f2505bd4c1 100644
--- a/src/northbridge/intel/i82830/northbridge.c
+++ b/src/northbridge/intel/i82830/northbridge.c
@@ -27,7 +27,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "i82830.h"
static void northbridge_init(device_t dev)
diff --git a/src/northbridge/intel/i855/northbridge.c b/src/northbridge/intel/i855/northbridge.c
index 74e2c766a7..b1e150f9bb 100644
--- a/src/northbridge/intel/i855/northbridge.c
+++ b/src/northbridge/intel/i855/northbridge.c
@@ -28,7 +28,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/x86/cache.h>
#include <cpu/cpu.h>
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c
index 684bb7195d..c6c93e540a 100644
--- a/src/northbridge/intel/i945/northbridge.c
+++ b/src/northbridge/intel/i945/northbridge.c
@@ -26,7 +26,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/acpi.h>
#include "i945.h"
diff --git a/src/northbridge/intel/sandybridge/northbridge.c b/src/northbridge/intel/sandybridge/northbridge.c
index 4b5a03a6c5..8652838add 100644
--- a/src/northbridge/intel/sandybridge/northbridge.c
+++ b/src/northbridge/intel/sandybridge/northbridge.c
@@ -31,7 +31,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cbmem.h>
#include "chip.h"
diff --git a/src/northbridge/intel/sch/northbridge.c b/src/northbridge/intel/sch/northbridge.c
index 4c41d68fbd..fe5881c8b3 100644
--- a/src/northbridge/intel/sch/northbridge.c
+++ b/src/northbridge/intel/sch/northbridge.c
@@ -26,7 +26,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/acpi.h>
#include "sch.h"
diff --git a/src/northbridge/rdc/r8610/northbridge.c b/src/northbridge/rdc/r8610/northbridge.c
index 65fd5ebf72..ebcccff7b4 100644
--- a/src/northbridge/rdc/r8610/northbridge.c
+++ b/src/northbridge/rdc/r8610/northbridge.c
@@ -28,7 +28,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <smbios.h>
#if CONFIG_WRITE_HIGH_TABLES
diff --git a/src/northbridge/via/cn400/northbridge.c b/src/northbridge/via/cn400/northbridge.c
index 61d7345d99..ab9f08445b 100644
--- a/src/northbridge/via/cn400/northbridge.c
+++ b/src/northbridge/via/cn400/northbridge.c
@@ -28,7 +28,7 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include "northbridge.h"
#include "cn400.h"
diff --git a/src/northbridge/via/cn400/vga.c b/src/northbridge/via/cn400/vga.c
index d8c921af89..d87cfcb0b7 100644
--- a/src/northbridge/via/cn400/vga.c
+++ b/src/northbridge/via/cn400/vga.c
@@ -31,7 +31,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/interrupt.h>
#include "northbridge.h"
diff --git a/src/northbridge/via/cn700/northbridge.c b/src/northbridge/via/cn700/northbridge.c
index 837ec8572e..86c11a8d55 100644
--- a/src/northbridge/via/cn700/northbridge.c
+++ b/src/northbridge/via/cn700/northbridge.c
@@ -28,7 +28,7 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include "northbridge.h"
#include "cn700.h"
diff --git a/src/northbridge/via/cn700/vga.c b/src/northbridge/via/cn700/vga.c
index 0f96b2cbbf..0ad181d176 100644
--- a/src/northbridge/via/cn700/vga.c
+++ b/src/northbridge/via/cn700/vga.c
@@ -31,7 +31,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/interrupt.h>
#include "northbridge.h"
diff --git a/src/northbridge/via/cx700/northbridge.c b/src/northbridge/via/cx700/northbridge.c
index 3d7137e5de..ce5edf8cb8 100644
--- a/src/northbridge/via/cx700/northbridge.c
+++ b/src/northbridge/via/cx700/northbridge.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
diff --git a/src/northbridge/via/cx700/vga.c b/src/northbridge/via/cx700/vga.c
index 6b60354dd1..ce294faa97 100644
--- a/src/northbridge/via/cx700/vga.c
+++ b/src/northbridge/via/cx700/vga.c
@@ -25,7 +25,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/via/vt8601/northbridge.c b/src/northbridge/via/vt8601/northbridge.c
index f5f084c17a..950d6838a2 100644
--- a/src/northbridge/via/vt8601/northbridge.c
+++ b/src/northbridge/via/vt8601/northbridge.c
@@ -8,7 +8,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
/*
diff --git a/src/northbridge/via/vt8623/northbridge.c b/src/northbridge/via/vt8623/northbridge.c
index 42864e069f..e061155587 100644
--- a/src/northbridge/via/vt8623/northbridge.c
+++ b/src/northbridge/via/vt8623/northbridge.c
@@ -7,7 +7,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/via/vt8623/vga.c b/src/northbridge/via/vt8623/vga.c
index 954ff47873..9bbb54b07f 100644
--- a/src/northbridge/via/vt8623/vga.c
+++ b/src/northbridge/via/vt8623/vga.c
@@ -25,7 +25,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/via/vx800/northbridge.c b/src/northbridge/via/vx800/northbridge.c
index 5fcff763fc..4e0a36dae0 100644
--- a/src/northbridge/via/vx800/northbridge.c
+++ b/src/northbridge/via/vx800/northbridge.c
@@ -29,7 +29,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "vx800.h"
diff --git a/src/northbridge/via/vx800/vga.c b/src/northbridge/via/vx800/vga.c
index 319dbda7de..ee9924dd78 100644
--- a/src/northbridge/via/vx800/vga.c
+++ b/src/northbridge/via/vx800/vga.c
@@ -28,7 +28,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>