Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 04357767 in mainline


Ignore:
Timestamp:
2010-11-26T01:23:39Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
9ac2013
Parents:
019a348
Message:

using unsigned int seems to be more suitable than size_t is several cases

Location:
kernel/generic/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/config.h

    r019a348 r04357767  
    6666
    6767typedef struct {
    68         size_t cpu_count;            /**< Number of processors detected. */
     68        unsigned int cpu_count;      /**< Number of processors detected. */
    6969        volatile size_t cpu_active;  /**< Number of processors that are up and running. */
    7070       
  • kernel/generic/include/cpu.h

    r019a348 r04357767  
    8383         * Processor ID assigned by kernel.
    8484         */
    85         size_t id;
     85        unsigned int id;
    8686       
    8787        bool active;
  • kernel/generic/include/sysinfo/abi.h

    r019a348 r04357767  
    6666 */
    6767typedef struct {
    68         size_t id;               /**< CPU ID as stored by kernel */
     68        unsigned int id;         /**< CPU ID as stored by kernel */
    6969        bool active;             /**< CPU is activate */
    7070        uint16_t frequency_mhz;  /**< Frequency in MHz */
Note: See TracChangeset for help on using the changeset viewer.