On 07/01/2016 17:56, Janosch Frank wrote: > The string analysis to extract the cpu numbers is only needed in the > get_online_cpus function where it resides, so why do you want to split > this function into two? > > Its also only a few lines which are easy to read.
It's a common format in sysfs, so it is not implausible that it will be reused. The function could be named parse_int_list. Paolo