Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39644
b: refs/heads/master
c: caede34
h: refs/heads/master
v: v3
  • Loading branch information
akpm@osdl.org authored and Dave Jones committed Nov 8, 2006
1 parent 11ec70e commit 3ff38bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7a1944e8da5e91859b98259189aaaa4d8b7fa07
refs/heads/master: caede347c3578b9dca49f53eab781fcaaacd3234
5 changes: 4 additions & 1 deletion trunk/arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static unsigned int pentiumM_get_frequency(void)
return (msr_tmp * 100 * 1000);
}

#ifdef CONFIG_X86_32
static unsigned int pentium_core_get_frequency(void)
{
u32 fsb = 0;
Expand Down Expand Up @@ -152,7 +153,7 @@ static unsigned int pentium_core_get_frequency(void)

return (msr_tmp * fsb * 1000);
}

#endif

static unsigned int pentium4_get_frequency(void)
{
Expand Down Expand Up @@ -204,8 +205,10 @@ static unsigned int pentium4_get_frequency(void)
unsigned int speedstep_get_processor_frequency(unsigned int processor)
{
switch (processor) {
#ifdef CONFIG_X86_32
case SPEEDSTEP_PROCESSOR_PCORE:
return pentium_core_get_frequency();
#endif
case SPEEDSTEP_PROCESSOR_PM:
return pentiumM_get_frequency();
case SPEEDSTEP_PROCESSOR_P4D:
Expand Down

0 comments on commit 3ff38bd

Please sign in to comment.