On 02/20/14 at 06:09pm, Jerry Hoemann wrote:
== Version 2 ==
+#
+# This function returns the "initial apicid" of the
+# boot cpu (cpu 0) if present.
+#
+function get_bootcpu_initial_apicid()
+{
+ awk ' \
+ BEGIN { CPU = "-1"; } \
+ $1=="processor" && $2==":" { CPU = $NF; } \
+ CPU=="0" && /initial apicid/ { print $NF; } \
+ ' \
+ /proc/cpuinfo
Hi Jerry,
How does it go with virtual machine? I didn't find the "initial apicid"
on my kvm guest.
Baoquan
Thanks
+}
+
+#