Patchwork [06/16] Port persimmon r6583 to e350m1: pstate 0 early

login
register
about
Submitter mbuschman@lucidmachines.com
Date 2011-06-04 06:10:34
Message ID <1307167844-13392-6-git-send-email-mbuschman@lucidmachines.com>
Download mbox | patch
Permalink /patch/3023/
State Accepted
Commit r6626
Headers show

Comments

mbuschman@lucidmachines.com - 2011-06-04 06:10:34
From: Scott Duplichan <scott@notabs.org>

Switch processor cores to pstate 0 early to reduce boot time.

Signed-off-by: Marshall Buschman <mbuschman@lucidmachines.com>
---
 src/mainboard/asrock/e350m1/romstage.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/src/mainboard/asrock/e350m1/romstage.c b/src/mainboard/asrock/e350m1/romstage.c
index d761d73..7f0b9df 100644
--- a/src/mainboard/asrock/e350m1/romstage.c
+++ b/src/mainboard/asrock/e350m1/romstage.c
@@ -47,6 +47,9 @@  void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
   u32 val;
   u8 reg8;
 
+  // all cores: set pstate 0 (1600 MHz) early to save a few ms of boot time
+  __writemsr (0xc0010062, 0);
+
   // early enable of SPI 33 MHz fast mode read
   if (boot_cpu())
     {