Skip to content

Commit

Permalink
k1c: Define empty arch_jump_label_transform_static
Browse files Browse the repository at this point in the history
Summary:
This avoid to be called for each static branch and rewrite NOP over NOP
which is useless in our case.

Test Plan: Checked that jump_label are still working correctly (self test)

Reviewers: O51 Linux Coolidge, gthouvenin

Reviewed By: O51 Linux Coolidge, gthouvenin

Subscribers: gthouvenin, alfred, #linux_coolidge_cc

Differential Revision: https://phab.kalray.eu/D2390
  • Loading branch information
clementleger authored and d3athjest3r committed Nov 20, 2023
1 parent 8e336b1 commit 028eece
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/k1c/kernel/jump_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,14 @@ void arch_jump_label_transform(struct jump_entry *e,

patch_jump_label(insn_code, insn_addr);
}

void arch_jump_label_transform_static(struct jump_entry *entry,
enum jump_label_type type)
{
/*
* We use the architected K1C NOP in arch_static_branch, so there's no
* need to patch an identical K1C NOP over the top of it here. The core
* will call arch_jump_label_transform from a module notifier if the
* NOP needs to be replaced by a branch.
*/
}

0 comments on commit 028eece

Please sign in to comment.