nodeinfo: drop static variable
nodeinfo: drop static variable

We were wasting time to malloc a copy of a constant string, then
copy it into static storage, for every call to nodeGetInfo.  At
least we were lucky that it was a constant source, and thus not
subject to even worse issues with one thread clobbering the static
storage while another was using it.  This gets rid of the waste,
by passing the string through the stack instead, as well as renaming
internal functions to better match our conventions.

* src/nodeinfo.c (sysfs_path): Delete.
(get_cpu_value, count_thread_siblings, parse_socket): Add
parameter, and rename...
(virNodeGetCpuValue, virNodeCountThreadSiblings)
(virNodeParseSocket): ... into a common namespace.
(cpu_online, parse_core): Inline into callers.
(linuxNodeInfoCPUPopulate): Update caller.
(nodeGetInfo): Drop a useless malloc.

bjzhang/libvirt,nertpinx/libvirt,datto/libvirt,elmarco/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,fabianfreyer/libvirt,rlaager/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,olafhering/libvirt,novel/fbsd-libvirt,emaste/libvirt,wiedi/libvirt,dumbbell/libvirt,warewolf/libvirt,datto/libvirt,jardasgit/libvirt,eskultety/libvirt,warewolf/libvirt,olafhering/libvirt,crobinso/libvirt,zippy2/libvirt,shugaoye/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt1,nertpinx/libvirt,dumbbell/libvirt,cbosdo/libvirt,warewolf/libvirt,jardasgit/libvirt,emaste/libvirt,datto/libvirt,andreabolognani/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt,jeckersb/libvirt,elmarco/libvirt,jardasgit/libvirt,eskultety/libvirt,dumbbell/libvirt,siboulet/libvirt-openvz,wiedi/libvirt,trainstack/libvirt,rmarwaha/libvirt,siboulet/libvirt-openvz,taget/libvirt,wiedi/libvirt,shugaoye/libvirt,datto/libvirt,libvirt/libvirt,novel/fbsd-libvirt,jeckersb/libvirt,VenkatDatta/libvirt,taget/libvirt,trainstack/libvirt,cbosdo/libvirt,rmarwaha/libvirt1,nertpinx/libvirt,rmarwaha/libvirt1,wiedi/libvirt,zippy2/libvirt,agx/libvirt,wiedi/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,VenkatDatta/libvirt,olafhering/libvirt,trainstack/libvirt,libvirt/libvirt,dumbbell/libvirt,nertpinx/libvirt,rmarwaha/libvirt,libvirt/libvirt,bjzhang/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,shugaoye/libvirt,rmarwaha/libvirt,zippy2/libvirt,andreabolognani/libvirt,emaste/libvirt,agx/libvirt,warewolf/libvirt,siboulet/libvirt-openvz,warewolf/libvirt,nertpinx/libvirt,rlaager/libvirt,rmarwaha/libvirt1,trainstack/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,elmarco/libvirt,rmarwaha/libvirt1,emaste/libvirt,novel/fbsd-libvirt,wiedi/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,dumbbell/libvirt,rmarwaha/libvirt,VenkatDatta/libvirt,agx/libvirt,VenkatDatta/libvirt,rlaager/libvirt,rmarwaha/libvirt,rlaager/libvirt,libvirt/libvirt,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,siboulet/libvirt-openvz,olafhering/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,andreabolognani/libvirt,jfehlig/libvirt,eskultety/libvirt,rmarwaha/libvirt1,emaste/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,taget/libvirt,iam-TJ/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,warewolf/libvirt,taget/libvirt,datto/libvirt,agx/libvirt,bjzhang/libvirt,trainstack/libvirt,novel/fbsd-libvirt,jfehlig/libvirt,trainstack/libvirt,VenkatDatta/libvirt,cbosdo/libvirt,eskultety/libvirt,crobinso/libvirt,bjzhang/libvirt,jfehlig/libvirt,emaste/libvirt,wiedi/libvirt,jeckersb/libvirt,agx/libvirt,rlaager/libvirt,jardasgit/libvirt,zippy2/libvirt,elmarco/libvirt,dumbbell/libvirt,jeckersb/libvirt,jardasgit/libvirt,crobinso/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,iam-TJ/libvirt,iam-TJ/libvirt,taget/libvirt,warewolf/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,bjzhang/libvirt,emaste/libvirt