diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2014-09-02 13:51:20 +0200 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2014-09-05 15:27:34 +0200 |
commit | 5c10f573b2d04e0476ef40003eddd588e29fc033 (patch) | |
tree | 0100bb3183bd235d339ac370e1f80e0c48aa2448 /src | |
parent | 348063c5a2279b8cb77493aad681130129d47e48 (diff) |
add comment for cpu calibration
Diffstat (limited to 'src')
-rw-r--r-- | src/rt-app_parse_config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt-app_parse_config.c b/src/rt-app_parse_config.c index 42b6458..61cff47 100644 --- a/src/rt-app_parse_config.c +++ b/src/rt-app_parse_config.c @@ -646,16 +646,17 @@ parse_global(struct json_object *global, rtapp_options_t *opts) cal_obj = get_in_object(global, "calibration", TRUE); if (cal_obj == NULL) { - /*no setting? Calibrate CPU0*/ + /* no setting ? Calibrate CPU0 */ opts->calib_cpu = 0; opts->calib_ns_per_loop = 0; log_error("missing calibration setting force CPU0"); } else { if (json_object_is_type(cal_obj, json_type_int)) { - /*integer (no " ") detected.*/ + /* integer (no " ") detected. */ opts->calib_ns_per_loop = json_object_get_int(cal_obj); log_debug("ns_per_loop %d", opts->calib_ns_per_loop); } else { + /* Get CPU number */ cal_str = get_string_value_from(global, "calibration", TRUE, "CPU0"); scan_cnt = sscanf(cal_str, "CPU%d", &opts->calib_cpu); |