Skip to contentSkip to conversation

Clarify the meaning of setting /dev/cpu_dma_latency to 0

PATCH New Carsten Emde 1 participant 2 messages Dec 19, 2012

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 Improve message when disabling sleep states

In reply to Carsten Emde

The message "/dev/cpu_dma_latency set to 0us" may not always correctly transmit the message that the purpose of doing so is to disable sleep states. Added this detail to the message.

src/cyclictest/cyclictest.c +2 -1
Index: rt-tests/src/cyclictest/cyclictest.c
===================================================================
@@ -227,7 +227,8 @@ static void set_latency_target(void)
 			close(latency_target_fd);
 			return;
 		}
-		printf("# /dev/cpu_dma_latency set to %dus\n", latency_target_value);
+		printf("# /dev/cpu_dma_latency set to %dus (disabling sleep states)\n",
+		    latency_target_value);
 	}
 }