> +static int extlog_trace_show(struct seq_file *m, void *v) > +{ > + atomic_inc(&trace_on); > + return 0; > +} > + > +static int trace_open(struct inode *inode, struct file *file) > +{ > + return single_open(file, extlog_trace_show, NULL); > +} Shouldn't this atomic_inc() be inside the trace_open() function ... not the extlog_trace_show()? -Tony -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html