|
@@ -43,9 +43,10 @@ static DEFINE_PER_CPU(__u32, proc_event_counts) = { 0 };
|
|
|
|
|
|
static inline void get_seq(__u32 *ts, int *cpu)
|
|
|
{
|
|
|
- *ts = get_cpu_var(proc_event_counts)++;
|
|
|
+ preempt_disable();
|
|
|
+ *ts = __this_cpu_inc_return(proc_event_counts) -1;
|
|
|
*cpu = smp_processor_id();
|
|
|
- put_cpu_var(proc_event_counts);
|
|
|
+ preempt_enable();
|
|
|
}
|
|
|
|
|
|
void proc_fork_connector(struct task_struct *task)
|