On Wed, Dec 16, 2015 at 10:17 AM, Borislav Petkov <bp@xxxxxxxxx> wrote: > On Wed, Dec 16, 2015 at 09:52:37AM -0800, Dan Williams wrote: [..] > Now, imagine you have to do this pretty often. Which is faster: a > strcmp() or an int comparison...? Aside from "System RAM" checks I don't think any of these strcmp usages are in fast paths. > Even if this cannot be changed easily/in one go, maybe we should at > least think about starting doing it right so that the strcmp() "fun" is > phased out gradually... Sure, but I really don't find use of strcmp() that onerous in slow paths. -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html