Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/smp/ipi.c

    rfe32163 rdf4ed85  
    2727 */
    2828
    29 /** @addtogroup generic
     29/** @addtogroup generic 
    3030 * @{
    3131 */
     
    3333/**
    3434 * @file
    35  * @brief Generic IPI interface.
     35 * @brief       Generic IPI interface.
    3636 */
    37 
     37 
    3838#ifdef CONFIG_SMP
    3939
    4040#include <smp/ipi.h>
    4141#include <config.h>
     42
    4243
    4344/** Broadcast IPI message
     
    4748 * @param ipi Message to broadcast.
    4849 *
     50 * @bug The decision whether to actually send the IPI must be based
     51 *      on a different criterion. The current version has
     52 *      problems when some of the detected CPUs are marked
     53 *      disabled in machine configuration.
    4954 */
    5055void ipi_broadcast(int ipi)
     
    5560         * - if there is only one CPU but the kernel was compiled with CONFIG_SMP
    5661         */
    57        
    58         if (config.cpu_count > 1)
     62
     63        if ((config.cpu_active > 1) && (config.cpu_active == config.cpu_count))
    5964                ipi_broadcast_arch(ipi);
    6065}
Note: See TracChangeset for help on using the changeset viewer.