VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Randy Dunlap <rdunlap@infradead.org> 2021-02-12 20:52:54 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-02-13 11:42:40 -0800 commit: ade9679c159d5bbe14fb7e59e97daf6062872e2b parent: fee92a765fbcc9412680228f8fdc425ab9c8151e
Commit Summary:
h8300: fix PREEMPTION build, TI_PRE_COUNT undefined
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/arch/h8300/kernel/asm-offsets.c b/arch/h8300/kernel/asm-offsets.c
index 85e60509f0a8..d4b53af657c8 100644
--- a/arch/h8300/kernel/asm-offsets.c
+++ b/arch/h8300/kernel/asm-offsets.c
@@ -63,6 +63,9 @@ int main(void)
 	OFFSET(TI_FLAGS, thread_info, flags);
 	OFFSET(TI_CPU, thread_info, cpu);
 	OFFSET(TI_PRE, thread_info, preempt_count);
+#ifdef CONFIG_PREEMPTION
+	DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count));
+#endif
 
 	return 0;
 }