Re: [PATCH v2 20/29] nios2: Cpuinfo handling

2014-08-06 Thread Ley Foon Tan
On Fri, Jul 18, 2014 at 10:43 AM, Ley Foon Tan wrote: > On Tue, Jul 15, 2014 at 5:47 PM, Arnd Bergmann wrote: >> On Tuesday 15 July 2014 16:45:47 Ley Foon Tan wrote: >>> +static void *cpuinfo_start(struct seq_file *m, loff_t *pos) >>> +{ >>> + unsigned long i = *pos; >>> + >>> + retur

Re: [PATCH v2 20/29] nios2: Cpuinfo handling

2014-07-17 Thread Ley Foon Tan
On Tue, Jul 15, 2014 at 5:47 PM, Arnd Bergmann wrote: > On Tuesday 15 July 2014 16:45:47 Ley Foon Tan wrote: >> +static void *cpuinfo_start(struct seq_file *m, loff_t *pos) >> +{ >> + unsigned long i = *pos; >> + >> + return i < num_possible_cpus() ? (void *) (i + 1) : NULL; >> +} >> +

Re: [PATCH v2 20/29] nios2: Cpuinfo handling

2014-07-15 Thread Arnd Bergmann
On Tuesday 15 July 2014 16:45:47 Ley Foon Tan wrote: > +static void *cpuinfo_start(struct seq_file *m, loff_t *pos) > +{ > + unsigned long i = *pos; > + > + return i < num_possible_cpus() ? (void *) (i + 1) : NULL; > +} > + > +static void *cpuinfo_next(struct seq_file *m, void *v, loff_