LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-16-2006, 07:56 AM   #1
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Rep: Reputation: 30
Kernel Recompile error during make modules


So I was having a problem with my processor not running at full speed and decided to try to recompile the kernel changing the Processor Family from 586 to Pentium M (Centrino) make bzImage went well, but when I do 'make modules' i get the error:

#:/usr/src/linux # make modules
CHK /usr/src/linux-2.6.16.13-4/include/linux/version.h
CC [M] arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c: In function
‘centrino_cpu_init_acpi’:
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:288: error: ‘struct
acpi_processor_performance’ has no member named ‘pdc’
make[3]: *** [arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o] Error 1
make[2]: *** [arch/i386/kernel/cpu/cpufreq] Error 2
make[1]: *** [arch/i386/kernel/cpu] Error 2
make: *** [arch/i386/kernel] Error 2
#:/usr/src/linux #

So I have included the 'centrino_cpu_init_table' portion of speedstep-centrino.c

static int centrino_cpu_init_table(struct cpufreq_policy *policy)
{
struct cpuinfo_x86 *cpu = &cpu_data[policy->cpu];
struct cpu_model *model;

for(model = models; model->model_name != NULL; model++)
if (strcmp(cpu->x86_model_id, model->model_name) == 0)
break;
if (model->model_name == NULL) {
printk(KERN_INFO PFX "no support for CPU model \"%s\": "
"send /proc/cpuinfo to " MAINTAINER "\n",
cpu->x86_model_id);
return -ENOENT;
}

centrino_model = model;

printk(KERN_INFO PFX "found \"%s\": max frequency: %dkHz\n",
model->model_name, model->max_freq);

return 0;
}

#else
static inline int centrino_cpu_init_table(struct cpufreq_policy *policy) { return -ENODEV; }
#endif /* CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE */

/* Extract clock in kHz from PERF_CTL value */
static unsigned extract_clock(unsigned msr)
{
msr = (msr >> 8) & 0xff;
return msr * 100000;
}

/* Return the current CPU frequency in kHz */
static unsigned get_cur_freq(void)
{
unsigned l, h;

rdmsr(MSR_IA32_PERF_STATUS, l, h);
return extract_clock(l);
}


#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI

static struct acpi_processor_performance p;

#include <linux/acpi.h>
#include <acpi/processor.h>

Is this a Kernel Bug? Also, still in my default kernel, I get errors when trying to modprobe speedstep-centrino and acpi_cpufreq both saying no device found (which is why I was going to try to change the family class to Pentium M).

Any input would be great. Thanks.
 
Old 06-16-2006, 10:19 AM   #2
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
Eh, I fixed it.. stupid thing on my part. I forgot I put a new version of just the speedstep-centrino.c when trying to workout an issue with my speedstep... now fixed.. by replacing with backed up speedstep-centrino.c
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6 make modules error on RH9 t0mmy Linux - Newbie 3 04-08-2005 10:26 PM
Modules problems after kernel recompile (2.6.9) magoseitor Linux - Software 2 02-20-2005 12:12 AM
updating to kernel 2.4.22 error 'make modules' concerning aic7 Mestax Linux - Newbie 1 09-23-2003 02:51 PM
Kernel Recompile Filesystem modules ftgow Linux - Software 2 08-25-2003 01:46 AM
lost modules after kernel recompile ArnaudVR Slackware 2 07-07-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration