diff options
author | Mel Gorman <[email protected]> | 2009-07-15 12:23:11 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-07-18 12:55:28 +0200 |
commit | e5d490b252423605a77c54b2e35b10ea663763df (patch) | |
tree | 3ddeee6d5a9438b399a4e5a00c9499c4880879ad | |
parent | 78af08d90b8f745044b1274430bc4bc6b2b27aca (diff) |
profile: Suppress warning about large allocations when profile=1 is specified
When profile= is used, a large buffer is allocated early at
boot. This can be larger than what the page allocator can
provide so it prints a warning. However, the caller is able to
handle the situation so this patch suppresses the warning.
Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: KOSAKI Motohiro <[email protected]>
Cc: Linux Memory Management List <[email protected]>
Cc: Heinz Diehl <[email protected]>
Cc: David Miller <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andrew Morton <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | kernel/profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/profile.c b/kernel/profile.c index 69911b5745eb..419250ebec4d 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -117,11 +117,12 @@ int __ref profile_init(void) cpumask_copy(prof_cpu_mask, cpu_possible_mask); - prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL); + prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); if (prof_buffer) return 0; - prof_buffer = alloc_pages_exact(buffer_bytes, GFP_KERNEL|__GFP_ZERO); + prof_buffer = alloc_pages_exact(buffer_bytes, + GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN); if (prof_buffer) return 0; |