diff options
Diffstat (limited to 'kernel/sched/wait.c')
-rw-r--r-- | kernel/sched/wait.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/sched/wait.c b/kernel/sched/wait.c index 4f7053579fe3..9453efe9b25a 100644 --- a/kernel/sched/wait.c +++ b/kernel/sched/wait.c | |||
@@ -480,16 +480,6 @@ void wake_up_bit(void *word, int bit) | |||
480 | } | 480 | } |
481 | EXPORT_SYMBOL(wake_up_bit); | 481 | EXPORT_SYMBOL(wake_up_bit); |
482 | 482 | ||
483 | wait_queue_head_t *bit_waitqueue(void *word, int bit) | ||
484 | { | ||
485 | const int shift = BITS_PER_LONG == 32 ? 5 : 6; | ||
486 | const struct zone *zone = page_zone(virt_to_page(word)); | ||
487 | unsigned long val = (unsigned long)word << shift | bit; | ||
488 | |||
489 | return &zone->wait_table[hash_long(val, zone->wait_table_bits)]; | ||
490 | } | ||
491 | EXPORT_SYMBOL(bit_waitqueue); | ||
492 | |||
493 | /* | 483 | /* |
494 | * Manipulate the atomic_t address to produce a better bit waitqueue table hash | 484 | * Manipulate the atomic_t address to produce a better bit waitqueue table hash |
495 | * index (we're keying off bit -1, but that would produce a horrible hash | 485 | * index (we're keying off bit -1, but that would produce a horrible hash |