浏览代码

Merge branch 'tj-percpu' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc into core/percpu

Ingo Molnar 16 年之前
父节点
当前提交
0093b108a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/percpu.h

+ 1 - 1
include/linux/percpu.h

@@ -156,7 +156,7 @@ static inline void *__alloc_percpu(size_t size, size_t align)
 	 * on it.  Larger alignment should only be used for module
 	 * percpu sections on SMP for which this path isn't used.
 	 */
-	WARN_ON_ONCE(align > __alignof__(unsigned long long));
+	WARN_ON_ONCE(align > SMP_CACHE_BYTES);
 	return kzalloc(size, GFP_KERNEL);
 }