mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ptr_ring: support resizing multiple queues
Sometimes, we need support resizing multiple queues at once. This is because it was not easy to recover to recover from a partial failure of multiple queues resizing. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
fd68adec9d
commit
59e6ae5324
2 changed files with 67 additions and 9 deletions
|
|
@ -17,6 +17,11 @@
|
|||
typedef pthread_spinlock_t spinlock_t;
|
||||
|
||||
typedef int gfp_t;
|
||||
static void *kmalloc(unsigned size, gfp_t gfp)
|
||||
{
|
||||
return memalign(64, size);
|
||||
}
|
||||
|
||||
static void *kzalloc(unsigned size, gfp_t gfp)
|
||||
{
|
||||
void *p = memalign(64, size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue