Trivial changes to mm/page_alloc.c in -rt git tree
Subsystems (2)
PATCH 1/1 Trivial changes to mm/page_alloc.c in -rt git tree
Some trivial changes in function drain_zone_pages, in -rt tree.
Invocations to functions get_cpu_lock_cpu_irqsave/restore in function drain_zone_pages missing the ';' character.
--- mm/page_alloc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
mm/page_alloc.c +2 -2
@@ -889,14 +889,14 @@ void drain_zone_pages(int cpu, struct zone *zone, struct per_cpu_pages *pcp)unsigned long flags;int to_drain; - get_cpu_lock_cpu_irqsave(zone, cpu, flags) +get_cpu_lock_cpu_irqsave (zone, cpu, flags);if (pcp->count >= pcp->batch) to_drain = pcp->batch;else to_drain = pcp->count;free_pages_bulk (zone, to_drain, &pcp->list,0 ); pcp->count -= to_drain; - put_cpu_lock_irqrestore(zone, cpu, flags) + put_cpu_lock_irqrestore(zone, cpu, flags); }#endif
Signature · 1 line
1.5.6.5
Thanks, I'll add this Monday. Peter's having some issues with his semi-colon key ;-)
-- Steve
Quoted 35 lines · Luis Henriques
Some trivial changes in function
drain_zone_pages, in -rt tree.Invocations to functions get_cpu_lock_cpu_irqsave/restore in function
drain_zone_pagesmissing the ';' character.--- mm/page_alloc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)mm/page_alloc.c +2
-2@@ -889,14 +889,14 @@ void drain_zone_pages(int cpu, struct zone *zone, struct per_cpu_pages *pcp)unsigned long flags;int to_drain; - get_cpu_lock_cpu_irqsave(zone, cpu, flags) +get_cpu_lock_cpu_irqsave (zone, cpu, flags);if (pcp->count >= pcp->batch) to_drain = pcp->batch;else to_drain = pcp->count;free_pages_bulk (zone, to_drain, &pcp->list,0 ); pcp->count -= to_drain; - put_cpu_lock_irqrestore(zone, cpu, flags) + put_cpu_lock_irqrestore(zone, cpu, flags); }#endif Signature · 1 line
1.5.6.5