diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/pid.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 5c9037ba42f5..0a45de2918e2 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
@@ -53,12 +53,12 @@ int pid_max_max = PID_MAX_LIMIT; | |||
53 | * value does not cause lots of bitmaps to be allocated, but | 53 | * value does not cause lots of bitmaps to be allocated, but |
54 | * the scheme scales to up to 4 million PIDs, runtime. | 54 | * the scheme scales to up to 4 million PIDs, runtime. |
55 | */ | 55 | */ |
56 | typedef struct pidmap { | 56 | struct pidmap { |
57 | atomic_t nr_free; | 57 | atomic_t nr_free; |
58 | void *page; | 58 | void *page; |
59 | } pidmap_t; | 59 | }; |
60 | 60 | ||
61 | static pidmap_t pidmap_array[PIDMAP_ENTRIES] = | 61 | static struct pidmap pidmap_array[PIDMAP_ENTRIES] = |
62 | { [ 0 ... PIDMAP_ENTRIES-1 ] = { ATOMIC_INIT(BITS_PER_PAGE), NULL } }; | 62 | { [ 0 ... PIDMAP_ENTRIES-1 ] = { ATOMIC_INIT(BITS_PER_PAGE), NULL } }; |
63 | 63 | ||
64 | /* | 64 | /* |
@@ -78,7 +78,7 @@ static __cacheline_aligned_in_smp DEFINE_SPINLOCK(pidmap_lock); | |||
78 | 78 | ||
79 | static fastcall void free_pidmap(int pid) | 79 | static fastcall void free_pidmap(int pid) |
80 | { | 80 | { |
81 | pidmap_t *map = pidmap_array + pid / BITS_PER_PAGE; | 81 | struct pidmap *map = pidmap_array + pid / BITS_PER_PAGE; |
82 | int offset = pid & BITS_PER_PAGE_MASK; | 82 | int offset = pid & BITS_PER_PAGE_MASK; |
83 | 83 | ||
84 | clear_bit(offset, map->page); | 84 | clear_bit(offset, map->page); |
@@ -88,7 +88,7 @@ static fastcall void free_pidmap(int pid) | |||
88 | static int alloc_pidmap(void) | 88 | static int alloc_pidmap(void) |
89 | { | 89 | { |
90 | int i, offset, max_scan, pid, last = last_pid; | 90 | int i, offset, max_scan, pid, last = last_pid; |
91 | pidmap_t *map; | 91 | struct pidmap *map; |
92 | 92 | ||
93 | pid = last + 1; | 93 | pid = last + 1; |
94 | if (pid >= pid_max) | 94 | if (pid >= pid_max) |