Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54190
b: refs/heads/master
c: 364fbb2
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed May 7, 2007
1 parent cffa962 commit cb0cd24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ce745ed39d35f9d547d00d406db2be7c6c175b3
refs/heads/master: 364fbb29a0105863d76a1f7bbc01783a4af30a75
4 changes: 1 addition & 3 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -4033,10 +4033,8 @@ static int enable_cpucache(struct kmem_cache *cachep)
* to a larger limit. Thus disabled by default.
*/
shared = 0;
#ifdef CONFIG_SMP
if (cachep->buffer_size <= PAGE_SIZE)
if (cachep->buffer_size <= PAGE_SIZE && num_possible_cpus() > 1)
shared = 8;
#endif

#if DEBUG
/*
Expand Down

0 comments on commit cb0cd24

Please sign in to comment.