aboutsummaryrefslogtreecommitdiffstats
path: root/mm/highmem.c
Commit message (Expand)AuthorAge
* Create the ZONE_MOVABLE zoneMel Gorman2007-07-17
* [PATCH] i386: PARAVIRT: add kmap_atomic_pte for mapping highpte pagesJeremy Fitzhardinge2007-05-02
* [PATCH] Use ZVC for free_pagesChristoph Lameter2007-02-11
* [PATCH] BLOCK: Separate the bounce buffering code from the highmem code [try #6]David Howells2006-09-30
* [PATCH] reduce MAX_NR_ZONES: move HIGHMEM counters into highmem.c/.hChristoph Lameter2006-09-26
* [PATCH] zoned vm counters: conversion of nr_bounce to per zone counterChristoph Lameter2006-06-30
* BUG_ON() Conversion in mm/highmem.cEric Sesterhenn2006-04-02
* [PATCH] mempool: use common mempool page allocatorMatthew Dobson2006-03-26
* [PATCH] Block queue IO tracing support (blktrace) as of 2006-03-23Jens Axboe2006-03-23
* [PATCH] gfp_t: the restAl Viro2005-10-28
* [PATCH] gfp flags annotations - part 1Al Viro2005-10-08
* [PATCH] count bounce buffer pages in vmstatKAMEZAWA Hiroyuki2005-05-01
* Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds2005-04-16
>
14
15
16
17
18
19
20
21
22
23
24


                           

                    
                           
 

                                                                       


                  
                                              








                           

                                 
#ifndef _ASM_GENERIC_PAGE_H
#define _ASM_GENERIC_PAGE_H

#ifndef __ASSEMBLY__

#include <linux/compiler.h>

/* Pure 2^n version of get_order */
static __inline__ __attribute_const__ int get_order(unsigned long size)
{
	int order;

	size = (size - 1) >> (PAGE_SHIFT - 1);
	order = -1;
	do {
		size >>= 1;
		order++;
	} while (size);
	return order;
}

#endif	/* __ASSEMBLY__ */

#endif	/* _ASM_GENERIC_PAGE_H */