Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>


1906                 kdi_cpu_init();
1907 
1908         (void) mach_cpu_create_device_node(cp, NULL);
1909 
1910         /*
1911          * Setting the bit in cpu_ready_set must be the last operation in
1912          * processor initialization; the boot CPU will continue to boot once
1913          * it sees this bit set for all active CPUs.
1914          */
1915         CPUSET_ATOMIC_ADD(cpu_ready_set, cp->cpu_id);
1916 
1917         cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_idstr);
1918         cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_brandstr);
1919         cmn_err(CE_CONT, "?cpu%d initialization complete - online\n",
1920             cp->cpu_id);
1921 
1922         /*
1923          * Now we are done with the startup thread, so free it up.
1924          */
1925         thread_exit();
1926         panic("mp_startup: cannot return");
1927         /*NOTREACHED*/
1928 }
1929 
1930 /*
1931  * Startup function for 'other' CPUs at boot time (besides boot cpu).
1932  */
1933 static void
1934 mp_startup_boot(void)
1935 {
1936         mp_startup_common(B_TRUE);
1937 }
1938 
1939 /*
1940  * Startup function for hotplug CPUs at runtime.
1941  */
1942 void
1943 mp_startup_hotplug(void)
1944 {
1945         mp_startup_common(B_FALSE);
1946 }




1906                 kdi_cpu_init();
1907 
1908         (void) mach_cpu_create_device_node(cp, NULL);
1909 
1910         /*
1911          * Setting the bit in cpu_ready_set must be the last operation in
1912          * processor initialization; the boot CPU will continue to boot once
1913          * it sees this bit set for all active CPUs.
1914          */
1915         CPUSET_ATOMIC_ADD(cpu_ready_set, cp->cpu_id);
1916 
1917         cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_idstr);
1918         cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_brandstr);
1919         cmn_err(CE_CONT, "?cpu%d initialization complete - online\n",
1920             cp->cpu_id);
1921 
1922         /*
1923          * Now we are done with the startup thread, so free it up.
1924          */
1925         thread_exit();

1926         /*NOTREACHED*/
1927 }
1928 
1929 /*
1930  * Startup function for 'other' CPUs at boot time (besides boot cpu).
1931  */
1932 static void
1933 mp_startup_boot(void)
1934 {
1935         mp_startup_common(B_TRUE);
1936 }
1937 
1938 /*
1939  * Startup function for hotplug CPUs at runtime.
1940  */
1941 void
1942 mp_startup_hotplug(void)
1943 {
1944         mp_startup_common(B_FALSE);
1945 }