Found with misspell-fixer. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: If062df0189d92e4fb2da3f055fb981909780dc04 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15207 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
54 lines
983 B
C
54 lines
983 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (C) 2020 Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#include "spdk/stdinc.h"
|
|
#include "spdk/likely.h"
|
|
#include "spdk/event.h"
|
|
#include "spdk/log.h"
|
|
#include "spdk/env.h"
|
|
#include "spdk/scheduler.h"
|
|
|
|
#include "spdk_internal/event.h"
|
|
|
|
static int
|
|
init_static(void)
|
|
{
|
|
/* There is no scheduling performed by static scheduler,
|
|
* do not set the scheduling period. */
|
|
spdk_scheduler_set_period(0);
|
|
return 0;
|
|
}
|
|
|
|
static void
|
|
deinit_static(void)
|
|
{
|
|
}
|
|
|
|
static void
|
|
balance_static(struct spdk_scheduler_core_info *cores, uint32_t core_count)
|
|
{
|
|
}
|
|
|
|
static int
|
|
set_opts_static(const struct spdk_json_val *opts)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static void
|
|
get_opts_static(struct spdk_json_write_ctx *ctx)
|
|
{
|
|
}
|
|
|
|
static struct spdk_scheduler scheduler = {
|
|
.name = "static",
|
|
.init = init_static,
|
|
.deinit = deinit_static,
|
|
.balance = balance_static,
|
|
.set_opts = set_opts_static,
|
|
.get_opts = get_opts_static,
|
|
};
|
|
SPDK_SCHEDULER_REGISTER(scheduler);
|