diff options
author | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-04-19 17:17:33 -0400 |
---|---|---|
committer | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-04-19 17:17:33 -0400 |
commit | ca16fd5c25326ebaf3672155df7058d98cade764 (patch) | |
tree | 6ce5aff067bd5f3521010d153023e3f22f88ebfa /arch/i386 | |
parent | e7dcf76c95c27ed21a936c7174ed215763a64767 (diff) |
Slight modification to semaphore initialization function, so that it
actually is called at boot.
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/pi_sem_syscalls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/i386/kernel/pi_sem_syscalls.c b/arch/i386/kernel/pi_sem_syscalls.c index bf79896654..06317c7145 100644 --- a/arch/i386/kernel/pi_sem_syscalls.c +++ b/arch/i386/kernel/pi_sem_syscalls.c | |||
@@ -17,7 +17,7 @@ struct pi_semaphore pi_sems[MAX_PI_SEMAPHORES]; /* all PI sems */ | |||
17 | typedef int pi_sema_id; /* Userspace ID of a pi_semaphore */ | 17 | typedef int pi_sema_id; /* Userspace ID of a pi_semaphore */ |
18 | 18 | ||
19 | /* Initialize PI semaphores at boot time. */ | 19 | /* Initialize PI semaphores at boot time. */ |
20 | void __init pi_sema_boot_init(void) | 20 | static int __init pi_sema_boot_init(void) |
21 | { | 21 | { |
22 | pi_sema_id sem_id; | 22 | pi_sema_id sem_id; |
23 | 23 | ||
@@ -25,7 +25,10 @@ void __init pi_sema_boot_init(void) | |||
25 | for (sem_id = 0; sem_id < MAX_PI_SEMAPHORES; sem_id++) | 25 | for (sem_id = 0; sem_id < MAX_PI_SEMAPHORES; sem_id++) |
26 | pi_sems[sem_id].used = 0; | 26 | pi_sems[sem_id].used = 0; |
27 | printk(" complete!\n"); | 27 | printk(" complete!\n"); |
28 | |||
29 | return 0; | ||
28 | } | 30 | } |
31 | __initcall(pi_sema_boot_init); | ||
29 | 32 | ||
30 | /* Find a free semaphore and assign to sem. */ | 33 | /* Find a free semaphore and assign to sem. */ |
31 | asmlinkage long sys_pi_sema_init (void) | 34 | asmlinkage long sys_pi_sema_init (void) |