From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kacur Subject: [PATCH 4/5] rt-tests: Fix some style problems, such as spaces instead of tabs. Date: Wed, 27 Jan 2010 21:24:27 +0100 Message-ID: <1264623868-23595-5-git-send-email-jkacur@redhat.com> References: <1264623868-23595-1-git-send-email-jkacur@redhat.com> Cc: Thomas Gleixner , lkml , Ingo Molnar , Carsten Emde , rt-users , John Kacur , John Kacur To: Clark Williams Return-path: In-Reply-To: <1264623868-23595-1-git-send-email-jkacur@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org From: John Kacur Fix some style problems, such as spaces instead of tabs, trailing spaces, spaces required before } Signed-off-by: John Kacur --- src/cyclictest/rt_numa.h | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h index ac2aca2..73ef3d8 100644 --- a/src/cyclictest/rt_numa.h +++ b/src/cyclictest/rt_numa.h @@ -40,7 +40,7 @@ threadfree(void *ptr, size_t size, int node) free(ptr); else numa_free(ptr, size); -} +} static void rt_numa_set_numa_run_on_node(int node, int cpu) { @@ -73,29 +73,29 @@ static int rt_numa_numa_node_of_cpu(int cpu) static int rt_numa_numa_node_of_cpu(int cpu) { unsigned char cpumask[16]; - int node, idx, bit; + int node, idx, bit; int max_node, max_cpus; max_node = numa_max_node(); max_cpus = sysconf(_SC_NPROCESSORS_CONF); - if (cpu > max_cpus) { - errno = EINVAL; - return -1; - } + if (cpu > max_cpus) { + errno = EINVAL; + return -1; + } /* calculate bitmask index and relative bit position of cpu */ idx = cpu / 8; bit = cpu % 8; - for (node = 0; node <= max_node; node++) { + for (node = 0; node <= max_node; node++) { if (numa_node_to_cpus(node, (void *) cpumask, sizeof(cpumask))) return -1; if (cpumask[idx] & (1<