Skip to content

Commit

Permalink
lisa/_assets/kmodules/lisa: Fix typo __worqueue
Browse files Browse the repository at this point in the history
FIX

It should be __workqueue instead.

Signed-off-by: Metin Kaya <[email protected]>
  • Loading branch information
metin-arm committed Sep 11, 2024
1 parent d43d78e commit 05f4932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lisa/_assets/kmodules/lisa/pixel6.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int enable_p6_emeter(struct feature *feature) {

#define HANDLE_ERR(code) if (code) {ret |= code; goto finish;}

HANDLE_ERR(ENABLE_FEATURE(__worqueue))
HANDLE_ERR(ENABLE_FEATURE(__workqueue))

data = kzalloc(sizeof(*data), GFP_KERNEL);
feature->data = data;
Expand Down Expand Up @@ -190,7 +190,7 @@ static int disable_p6_emeter(struct feature* feature) {
if (data)
free_p6_emeter_data(data);

ret |= DISABLE_FEATURE(__worqueue);
ret |= DISABLE_FEATURE(__workqueue);

return ret;
};
Expand Down
8 changes: 4 additions & 4 deletions lisa/_assets/kmodules/lisa/wq.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static void worker(struct work_struct* work) {

struct work_item *start_work(worker_t f, int delay, void *data) {
struct work_item *item;
struct workqueue_struct *wq = FEATURE(__worqueue)->data;
struct workqueue_struct *wq = FEATURE(__workqueue)->data;
if (!wq)
return NULL;

Expand Down Expand Up @@ -68,7 +68,7 @@ static int deinit_wq(struct feature *feature) {
destroy_workqueue(wq);
return 0;
}
DEFINE_INTERNAL_FEATURE(__worqueue, init_wq, deinit_wq);
DEFINE_INTERNAL_FEATURE(__workqueue, init_wq, deinit_wq);


/*
Expand Down Expand Up @@ -97,7 +97,7 @@ __maybe_unused static int example_init(struct feature *feature) {
struct example_data *data;
pr_info("Starting worker for feature %s\n", feature->name);

if (ENABLE_FEATURE(__worqueue))
if (ENABLE_FEATURE(__workqueue))
return 1;

data = kmalloc(sizeof(*data), GFP_KERNEL);
Expand All @@ -123,7 +123,7 @@ __maybe_unused static int example_deinit(struct feature *feature) {
kfree(data);
}

ret |= DISABLE_FEATURE(__worqueue);
ret |= DISABLE_FEATURE(__workqueue);

return ret;
}
Expand Down

0 comments on commit 05f4932

Please sign in to comment.