[coreboot-gerrit] Patch set updated for coreboot: bd8b976 northbridge/intel/*/gma.c: Remove dead code

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Sat Aug 2 06:34:00 CEST 2014


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6130

-gerrit

commit bd8b9764a16f0bd0fca02d64df0e76d0ebffa364
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Thu Jun 26 22:33:03 2014 +1000

    northbridge/intel/*/gma.c: Remove dead code
    
    Remove some dead coded spotted in Clang builds.
    
    Change-Id: Ia23e16eae76593eee249e0894ef1d704a274616f
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/northbridge/intel/nehalem/gma.c     | 56 ---------------------------------
 src/northbridge/intel/sandybridge/gma.c | 56 ---------------------------------
 2 files changed, 112 deletions(-)

diff --git a/src/northbridge/intel/nehalem/gma.c b/src/northbridge/intel/nehalem/gma.c
index bc4c74d..2470b0f 100644
--- a/src/northbridge/intel/nehalem/gma.c
+++ b/src/northbridge/intel/nehalem/gma.c
@@ -144,62 +144,6 @@ static const struct gt_powermeter ivb_pm_gt1[] = {
 	{0}
 };
 
-static const struct gt_powermeter ivb_pm_gt2[] = {
-	{0xa800, 0x10000000},
-	{0xa804, 0x00033800},
-	{0xa808, 0x00000902},
-	{0xa80c, 0x0c002f00},
-	{0xa810, 0x12000400},
-	{0xa814, 0x00000000},
-	{0xa818, 0x00d20800},
-	{0xa81c, 0x00000002},
-	{0xa820, 0x03004b02},
-	{0xa824, 0x00000600},
-	{0xa828, 0x07000773},
-	{0xa82c, 0x00000000},
-	{0xa830, 0x00010032},
-	{0xa834, 0x1520040d},
-	{0xa838, 0x00020105},
-	{0xa83c, 0x00083700},
-	{0xa840, 0x0000151d},
-	{0xa844, 0x00000000},
-	{0xa848, 0x20001b00},
-	{0xa84c, 0x0a000010},
-	{0xa850, 0x00000000},
-	{0xa854, 0x00000008},
-	{0xa858, 0x00000008},
-	{0xa85c, 0x00000000},
-	{0xa860, 0x00020000},
-	{0xa248, 0x0000221e},
-	{0xa900, 0x00000000},
-	{0xa904, 0x00003500},
-	{0xa908, 0x00000000},
-	{0xa90c, 0x0c000000},
-	{0xa910, 0x12000500},
-	{0xa914, 0x00000000},
-	{0xa918, 0x00b20000},
-	{0xa91c, 0x00000000},
-	{0xa920, 0x08004b02},
-	{0xa924, 0x00000200},
-	{0xa928, 0x07000820},
-	{0xa92c, 0x00000000},
-	{0xa930, 0x00030000},
-	{0xa934, 0x050f020d},
-	{0xa938, 0x00020300},
-	{0xa93c, 0x00903900},
-	{0xa940, 0x00000000},
-	{0xa944, 0x00000000},
-	{0xa948, 0x20001b00},
-	{0xa94c, 0x0a000010},
-	{0xa950, 0x00000000},
-	{0xa954, 0x00000008},
-	{0xa960, 0x00110000},
-	{0xaa3c, 0x00003900},
-	{0xaa54, 0x00000008},
-	{0xaa60, 0x00110000},
-	{0}
-};
-
 static const struct gt_powermeter ivb_pm_gt2_17w[] = {
 	{0xa800, 0x20000000},
 	{0xa804, 0x000e3800},
diff --git a/src/northbridge/intel/sandybridge/gma.c b/src/northbridge/intel/sandybridge/gma.c
index a01fe9f..0add055 100644
--- a/src/northbridge/intel/sandybridge/gma.c
+++ b/src/northbridge/intel/sandybridge/gma.c
@@ -139,62 +139,6 @@ static const struct gt_powermeter ivb_pm_gt1[] = {
 	{ 0 }
 };
 
-static const struct gt_powermeter ivb_pm_gt2[] = {
-	{ 0xa800, 0x10000000 },
-	{ 0xa804, 0x00033800 },
-	{ 0xa808, 0x00000902 },
-	{ 0xa80c, 0x0c002f00 },
-	{ 0xa810, 0x12000400 },
-	{ 0xa814, 0x00000000 },
-	{ 0xa818, 0x00d20800 },
-	{ 0xa81c, 0x00000002 },
-	{ 0xa820, 0x03004b02 },
-	{ 0xa824, 0x00000600 },
-	{ 0xa828, 0x07000773 },
-	{ 0xa82c, 0x00000000 },
-	{ 0xa830, 0x00010032 },
-	{ 0xa834, 0x1520040d },
-	{ 0xa838, 0x00020105 },
-	{ 0xa83c, 0x00083700 },
-	{ 0xa840, 0x0000151d },
-	{ 0xa844, 0x00000000 },
-	{ 0xa848, 0x20001b00 },
-	{ 0xa84c, 0x0a000010 },
-	{ 0xa850, 0x00000000 },
-	{ 0xa854, 0x00000008 },
-	{ 0xa858, 0x00000008 },
-	{ 0xa85c, 0x00000000 },
-	{ 0xa860, 0x00020000 },
-	{ 0xa248, 0x0000221e },
-	{ 0xa900, 0x00000000 },
-	{ 0xa904, 0x00003500 },
-	{ 0xa908, 0x00000000 },
-	{ 0xa90c, 0x0c000000 },
-	{ 0xa910, 0x12000500 },
-	{ 0xa914, 0x00000000 },
-	{ 0xa918, 0x00b20000 },
-	{ 0xa91c, 0x00000000 },
-	{ 0xa920, 0x08004b02 },
-	{ 0xa924, 0x00000200 },
-	{ 0xa928, 0x07000820 },
-	{ 0xa92c, 0x00000000 },
-	{ 0xa930, 0x00030000 },
-	{ 0xa934, 0x050f020d },
-	{ 0xa938, 0x00020300 },
-	{ 0xa93c, 0x00903900 },
-	{ 0xa940, 0x00000000 },
-	{ 0xa944, 0x00000000 },
-	{ 0xa948, 0x20001b00 },
-	{ 0xa94c, 0x0a000010 },
-	{ 0xa950, 0x00000000 },
-	{ 0xa954, 0x00000008 },
-	{ 0xa960, 0x00110000 },
-	{ 0xaa3c, 0x00003900 },
-	{ 0xaa54, 0x00000008 },
-	{ 0xaa60, 0x00110000 },
-	{ 0 }
-};
-
 static const struct gt_powermeter ivb_pm_gt2_17w[] = {
 	{ 0xa800, 0x20000000 },
 	{ 0xa804, 0x000e3800 },



More information about the coreboot-gerrit mailing list