From: David Miller Date: Thu, 3 Oct 2013 21:24:51 +0000 (-0400) Subject: of: Make cpu node handling more portable. X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~9^2~4^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1cb9d1af0bc11b7450a6032f43935c746609418;p=pandora-kernel.git of: Make cpu node handling more portable. Use for_each_node_by_type() to iterate all cpu nodes in the system. Provide and overridable function arch_find_n_match_cpu_physical_id, which sees if the given device node matches 'cpu' and if so sets '*thread' when non-NULL to the cpu thread number within the core. The default implementation behaves the same as the existing code. Add a sparc64 implementation. Signed-off-by: David S. Miller Tested-by: Sudeep KarkadaNagesha Signed-off-by: Grant Likely --- Reading git-diff-tree failed