Thread (30 messages) 30 messages, 7 authors, 2012-06-13

Re: [RFC 1/4] ARM: topology: Add arch_scale_freq_power function

From: Peter Zijlstra <peterz@infradead.org>
Date: 2012-06-13 21:51:38
Also in: linux-arm-kernel, lkml

On Wed, 2012-06-13 at 20:27 +0100, Andy Whitcroft wrote:
Actually if it was a new line, it would have been reported, at least in
theory:

    # check for memory barriers without a comment.
		    if ($line =~
    /\b(mb|rmb|wmb|read_barrier_depends|smp_mb|smp_rmb|smp_wmb|smp_read_barrier_depends)\(/)
    {
	if (!ctx_has_comment($first_line, $linenr)) {
	    CHK("MEMORY_BARRIER",
		"memory barrier without comment\n" . $herecurr);
	}
    }
Oh sweet, we already have something for that.. But yeah I'd promote that
CHK to something stronger like Joe said. Maybe even error. Memory
barriers are magic, not adding proper comments should be a capital
offense. 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help