Prev: x86, lmb: Add get_free_all_memory_range()
Next: x86, lmb: Use lmb_debug to control debug message print out
From: Bjorn Helgaas on 29 Jun 2010 14:00 On Tuesday, June 22, 2010 11:26:40 am Yinghai Lu wrote: > +void __init lmb_reserve_range(u64 start, u64 end, char *name) > +{ > + if (start == end) > + return; > + > + if (WARN_ONCE(start > end, "lmb_reserve_range: wrong range [%#llx, %#llx]\n", start, end)) Please use %pR format. > + return; > + > + lmb_reserve(start, end - start); > +} > + > +void __init lmb_free_range(u64 start, u64 end) > +{ > + if (start == end) > + return; > + > + if (WARN_ONCE(start > end, "lmb_free_range: wrong range [%#llx, %#llx]\n", start, end)) > + return; > + > + lmb_free(start, end - start); > +} > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |