/* RETURNS: Pointer to the allocated area on success, NULL on failure.  */
static void* pcpu_mem_alloc(size_t size)
/* RETURNS: Pointer to the allocated area on success, NULL on failure.  */
static void* pcpu_mem_alloc(size_t size)
{
	if (size <= PAGE_SIZE)
		return kzalloc(size, GFP_KERNEL);
	else {
		void *ptr = vmalloc(size);
		if (ptr)
			memset(ptr, 0, size);
		return ptr;
	}
}