speedstep-smi fails to load if CONFIG_CPU_FREQ_DEBUG is not set
http://bugzilla.kernel.org/show_bug.cgi?id=5553
------- Additional Comments From [email protected] 2006-02-05 06:08 ------- Uhmm, it seems some cache coherency problem.
Touching 'command' variable in printk() flashes cache including 'magic_data', doesn't it?
How about moving definition of magic_data[] to global? The valiable will be initialized at load time.
speedstep-smi.c 2006-02-05 23:52:16.000000000 +0900 renamed from speedstep-smi.c.orig 2005-09-17 10:02:12.000000000 +0900 +3 -1
@@ -61,11 +61,13 @@ /** * speedstep_smi_ownership */ + +static unsigned char magic_data[] = "Copyright (c) 1999 Intel Corporation"; + static int speedstep_smi_ownership (void) { u32 command, result, magic; u32 function = GET_SPEEDSTEP_OWNER; - unsigned char magic_data[] = "Copyright (c) 1999 Intel Corporation"; command = (smi_sig & 0xffffff00) | (smi_cmd & 0xff); magic = virt_to_phys(magic_data);
------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.