Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300159
b: refs/heads/master
c: 7c28332
h: refs/heads/master
i:
  300157: ddc3843
  300155: 7bbcce0
  300151: 3bbbe68
  300143: 1a3a4c8
  300127: 92bd6e5
  300095: bbcaf1f
  300031: aa42854
v: v3
  • Loading branch information
Linus Torvalds committed May 10, 2012
1 parent 0456e18 commit 6784d02
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 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: 17ff3c1fa4c7bd0c38d751715033023ebf32fc96
refs/heads/master: 7c283324da366a3e6ffaad4352a51a3c71fcae17
2 changes: 1 addition & 1 deletion trunk/arch/sparc/kernel/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,4 @@ static int __init sunfire_init(void)
return 0;
}

subsys_initcall(sunfire_init);
fs_initcall(sunfire_init);
6 changes: 3 additions & 3 deletions trunk/arch/sparc/mm/ultra.S
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,11 @@ xcall_fetch_glob_regs:
stx %o7, [%g1 + GR_SNAP_O7]
stx %i7, [%g1 + GR_SNAP_I7]
/* Don't try this at home kids... */
rdpr %cwp, %g2
sub %g2, 1, %g7
rdpr %cwp, %g3
sub %g3, 1, %g7
wrpr %g7, %cwp
mov %i7, %g7
wrpr %g2, %cwp
wrpr %g3, %cwp
stx %g7, [%g1 + GR_SNAP_RPC]
sethi %hi(trap_block), %g7
or %g7, %lo(trap_block), %g7
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin)
* origin == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate
* the cached file length
*/
if (origin != SEEK_SET || origin != SEEK_CUR) {
if (origin != SEEK_SET && origin != SEEK_CUR) {
int rc;
struct inode *inode = file->f_path.dentry->d_inode;

Expand Down
12 changes: 12 additions & 0 deletions trunk/mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,16 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size,
areas[group] = ptr;

base = min(ptr, base);
}

/*
* Copy data and free unused parts. This should happen after all
* allocations are complete; otherwise, we may end up with
* overlapping groups.
*/
for (group = 0; group < ai->nr_groups; group++) {
struct pcpu_group_info *gi = &ai->groups[group];
void *ptr = areas[group];

for (i = 0; i < gi->nr_units; i++, ptr += ai->unit_size) {
if (gi->cpu_map[i] == NR_CPUS) {
Expand Down Expand Up @@ -1885,6 +1895,8 @@ void __init setup_per_cpu_areas(void)
fc = __alloc_bootmem(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS));
if (!ai || !fc)
panic("Failed to allocate memory for percpu areas.");
/* kmemleak tracks the percpu allocations separately */
kmemleak_free(fc);

ai->dyn_size = unit_size;
ai->unit_size = unit_size;
Expand Down

0 comments on commit 6784d02

Please sign in to comment.