diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 21:36:26 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 21:36:26 -0500 |
| commit | eedb3d3304b59c64c811522f4ebaaf83124deeac (patch) | |
| tree | 00ede75849525bdc788fc106a1951616bc43c9e0 /mm | |
| parent | 9d050966e2eb37a643ac15904b6a8fda7fcfabe9 (diff) | |
| parent | eadac03e898617521f327faf265932b73ecc3e0f (diff) | |
Merge branch 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
Pull percpu updates from Tejun Heo:
"Nothing interesting. A patch to convert the remaining __get_cpu_var()
users, another to fix non-critical off-by-one in an assertion and a
cosmetic conversion to lockless_dereference() in percpu-ref.
The back-merge from mainline is to receive lockless_dereference()"
* 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
percpu: Replace smp_read_barrier_depends() with lockless_dereference()
percpu: Convert remaining __get_cpu_var uses in 3.18-rcX
percpu: off by one in BUG_ON()
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 014bab65e0ff..d39e2f4e335c 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
| @@ -1591,7 +1591,7 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, | |||
| 1591 | if (cpu == NR_CPUS) | 1591 | if (cpu == NR_CPUS) |
| 1592 | continue; | 1592 | continue; |
| 1593 | 1593 | ||
| 1594 | PCPU_SETUP_BUG_ON(cpu > nr_cpu_ids); | 1594 | PCPU_SETUP_BUG_ON(cpu >= nr_cpu_ids); |
| 1595 | PCPU_SETUP_BUG_ON(!cpu_possible(cpu)); | 1595 | PCPU_SETUP_BUG_ON(!cpu_possible(cpu)); |
| 1596 | PCPU_SETUP_BUG_ON(unit_map[cpu] != UINT_MAX); | 1596 | PCPU_SETUP_BUG_ON(unit_map[cpu] != UINT_MAX); |
| 1597 | 1597 | ||
