diff options
author | Santosh Shukla <santosh.shukla@linaro.org> | 2014-08-11 16:59:02 +0530 |
---|---|---|
committer | santosh shukla <santosh.shukla@linaro.org> | 2014-08-11 20:04:02 +0530 |
commit | a6e6c20fedb0fb29e56972370bd3c167297c6bb0 (patch) | |
tree | 39af68501d91a41955e7f04fc65a348080d794c7 | |
parent | 9878410a4ea24422152d11427fe814c0b44fa276 (diff) |
is-cpu-isolated : Mask of all IPI for x86
Its known bug that IPI voilates isolation in
case of x86 so for odp demo purpose mask them
This code snippet mask total_intrrupt to not
to use x86 IPI's
cat /proc/interrupts | egrep -v 'interrupts|RTR|TLB|MCE|MCP|ERR|MIS' |
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 5b3f6d6..ad3e153 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -99,6 +99,7 @@ update_non_isol_cpus() { # - one CPU, pass cpu number as parameter # - all CPUs, pass "ALL" as parameter total_interrupts() { + cat /proc/interrupts | egrep -v 'interrupts|RTR|TLB|MCE|MCP|ERR|MIS' | awk -v isolate_cpu="$1" ' BEGIN { line=0; @@ -137,7 +138,7 @@ total_interrupts() { } # File to process -' /proc/interrupts +' } # Create per-cpu data plane cpuset |