[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140601.185245.1776835653575236303.davem@davemloft.net>
Date: Sun, 01 Jun 2014 18:52:45 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: rickard_strandqvist@...ctrumdigital.se
Cc: tkhai@...dex.ru, paul.gortmaker@...driver.com,
peterz@...radead.org, bhelgaas@...gle.com,
sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arch: sparc: kernel: smp_64.c: Optimization of the Code
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
Date: Sun, 1 Jun 2014 23:48:18 +0200
> From what I know, AND is faster then modulo.
> Not sure if this is worth changing though.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
This code came from the IA-64 arch code, so you probably want to
fix either both or neither.
I'd say neither, this is not a performance critical path and the
intent is clearer when expressed as a modulus.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists