Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136951
b: refs/heads/master
c: 313e458
h: refs/heads/master
i:
  136949: 7df29d0
  136947: 5432f38
  136943: 0120826
v: v3
  • Loading branch information
Rusty Russell authored and Tejun Heo committed Feb 20, 2009
1 parent fec4aee commit 450ff34
Show file tree
Hide file tree
Showing 4 changed files with 7 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: b36128c830a8f5bd7d4981f5b0b69950f5928ee6
refs/heads/master: 313e458f81ec3852106c5a83830fe0d4f405a71a
2 changes: 1 addition & 1 deletion trunk/block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
if (!bt->sequence)
goto err;

bt->msg_data = __alloc_percpu(BLK_TN_MAX_MSG);
bt->msg_data = __alloc_percpu(BLK_TN_MAX_MSG, __alignof__(char));
if (!bt->msg_data)
goto err;

Expand Down
5 changes: 3 additions & 2 deletions trunk/include/linux/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ static inline void percpu_free(void *__pdata)

/* (legacy) interface for use without CPU hotplug handling */

#define __alloc_percpu(size) percpu_alloc_mask((size), GFP_KERNEL, \
#define __alloc_percpu(size, align) percpu_alloc_mask((size), GFP_KERNEL, \
cpu_possible_map)
#define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type))
#define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \
__alignof__(type))
#define free_percpu(ptr) percpu_free((ptr))
/*
* Use this to get to a cpu's version of the per-cpu object dynamically
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1375,10 +1375,10 @@ EXPORT_SYMBOL_GPL(snmp_fold_field);
int snmp_mib_init(void *ptr[2], size_t mibsize)
{
BUG_ON(ptr == NULL);
ptr[0] = __alloc_percpu(mibsize);
ptr[0] = __alloc_percpu(mibsize, __alignof__(unsigned long long));
if (!ptr[0])
goto err0;
ptr[1] = __alloc_percpu(mibsize);
ptr[1] = __alloc_percpu(mibsize, __alignof__(unsigned long long));
if (!ptr[1])
goto err1;
return 0;
Expand Down

0 comments on commit 450ff34

Please sign in to comment.