From: Sapan Bhatia Date: Fri, 29 Jan 2010 22:05:29 +0000 (+0000) Subject: The patch compiled because chopstix was turned off in .config. Fixing compilation... X-Git-Tag: linux-2.6-27-4~20 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=51eeba921dcd42616c412f3b66f5bfa24b82b626;p=linux-2.6.git The patch compiled because chopstix was turned off in .config. Fixing compilation errors after turning it off. --- diff --git a/linux-2.6-591-chopstix-intern.patch b/linux-2.6-591-chopstix-intern.patch index ba487bcab..1013638ef 100644 --- a/linux-2.6-591-chopstix-intern.patch +++ b/linux-2.6-591-chopstix-intern.patch @@ -574,7 +574,7 @@ diff -Nurb linux-2.6.27-590/kernel/sched.c.rej linux-2.6.27-591/kernel/sched.c.r ++ espec.reason = sampling_reason; ++ event.event_data=&espec; ++ event.task=next; -++ espec.pc=regs->eip; +++ espec.pc=regs->ip; ++ event.event_type=2; ++ /* index in the event array currently set up */ ++ /* make sure the counters are loaded in the order we want them to show up*/ @@ -623,7 +623,7 @@ diff -Nurb linux-2.6.27-590/kernel/sched.c.rej linux-2.6.27-591/kernel/sched.c.r ++ struct event_spec *es = event_signature_in->event_data; ++ regs = task_pt_regs(current); ++ event_signature_in->task=current; -++ es->pc=regs->eip; +++ es->pc=regs->ip; ++ event_signature_in->count=1; ++ (*rec_event)(event_signature_in, count); ++ } @@ -668,7 +668,7 @@ diff -Nurb linux-2.6.27-590/mm/memory.c linux-2.6.27-591/mm/memory.c + struct pt_regs *regs; + unsigned int pc; + regs = task_pt_regs(current); -+ pc = regs->eip & (unsigned int) ~4095; ++ pc = regs->ip & (unsigned int) ~4095; + + espec.reason = 0; /* alloc */ + event.event_data=&espec;