-+ /* Run only if the Chopstix module so decrees it */
-+ if (rec_event) {
-+ unsigned long diff;
-+ int sampling_reason;
-+ prev->last_ran_j = jiffies;
-+ if (next->last_interrupted!=INTERRUPTIBLE) {
-+ if (next->last_interrupted!=RUNNING) {
-+ diff = (jiffies-next->last_interrupted);
-+ sampling_reason = 0;/* BLOCKING */
-+ }
-+ else {
-+ diff = jiffies-next->last_ran_j;
-+ sampling_reason = 1;/* PREEMPTION */
-+ }
-+
-+ if (diff >= HZ/10) {
-+ struct event_spec {
-+ unsigned long pc;
-+ unsigned long dcookie;
-+ unsigned int count;
-+ unsigned int reason;
-+ };
-+
-+ struct event event;
-+ struct event_spec espec;
-+ struct pt_regs *regs;
-+ regs = task_pt_regs(current);
-+
-+ espec.reason = sampling_reason;
-+ event.event_data=&espec;
-+ event.task=next;
-+ 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*/
-+ (*rec_event)(&event, diff);
++ /* Run only if the Chopstix module so decrees it */
++ if (rec_event) {
++ unsigned long diff;
++ int sampling_reason;
++ prev->last_ran_j = jiffies;
++ if (next->last_interrupted!=INTERRUPTIBLE) {
++ if (next->last_interrupted!=RUNNING) {
++ diff = (jiffies-next->last_interrupted);
++ sampling_reason = 0;/* BLOCKING */
++ }
++ else {
++ diff = jiffies-next->last_ran_j;
++ sampling_reason = 1;/* PREEMPTION */
++ }
++
++ if (diff >= HZ/10) {
++ struct event event;
++ struct event_spec espec;
++ struct pt_regs *regs;
++ regs = task_pt_regs(current);
++
++ espec.reason = sampling_reason;
++ event.event_data=&espec;
++ event.task=next;
++ 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*/
++ (*rec_event)(&event, diff);
++ }