Changeset a78b0a0 in mainline


Ignore:
Timestamp:
2025-04-10T17:20:48Z (4 days ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
0b47781, a92290d
Parents:
a188131
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-09 17:24:57)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-10 17:20:48)
Message:

Use static initialization for ap_completion_semaphore

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    ra188131 ra78b0a0  
    108108#ifdef CONFIG_SMP
    109109        if (config.cpu_count > 1) {
    110                 semaphore_initialize(&ap_completion_semaphore, 0);
    111 
    112110                /*
    113111                 * Create the kmp thread and wait for its completion.
  • kernel/generic/src/smp/smp.c

    ra188131 ra78b0a0  
    3939#ifdef CONFIG_SMP
    4040
    41 semaphore_t ap_completion_semaphore;
     41SEMAPHORE_INITIALIZE(ap_completion_semaphore, 0);
    4242
    4343#endif /* CONFIG_SMP */
Note: See TracChangeset for help on using the changeset viewer.