Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1180351 > unrolled thread
| Started by | Jean Tourrilhes <jt@hpl.hp.com> |
|---|---|
| First post | 2015-07-09 03:00 +0200 |
| Last post | 2015-07-09 10:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] kthread: export park/unpark facility Jean Tourrilhes <jt@hpl.hp.com> - 2015-07-09 03:00 +0200
Re: [PATCH] kthread: export park/unpark facility Thomas Gleixner <tglx@linutronix.de> - 2015-07-09 10:10 +0200
| From | Jean Tourrilhes <jt@hpl.hp.com> |
|---|---|
| Date | 2015-07-09 03:00 +0200 |
| Subject | [PATCH] kthread: export park/unpark facility |
| Message-ID | <pK8lX-1Lr-9@gated-at.bofh.it> |
Hi,
The kthread park/unpark facility is not used in the kernel, so
one would assume that it's made for kernel modules. This patch should
definitely help most modules.
Patch untested, at your own risks...
Regards,
Jean
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
diff -u -p linux-3.18.17/kernel/kthread.j2.c linux-3.18.17/kernel/kthread.c
--- linux-3.18.17/kernel/kthread.j2.c 2015-07-08 17:01:39.010554169 -0700
+++ linux-3.18.17/kernel/kthread.c 2015-07-08 17:09:13.016096189 -0700
@@ -97,6 +97,7 @@ bool kthread_should_park(void)
{
return test_bit(KTHREAD_SHOULD_PARK, &to_kthread(current)->flags);
}
+EXPORT_SYMBOL(kthread_should_park);
/**
* kthread_freezable_should_stop - should this freezable kthread return now?
@@ -171,6 +172,7 @@ void kthread_parkme(void)
{
__kthread_parkme(to_kthread(current));
}
+EXPORT_SYMBOL(kthread_parkme);
static int kthread(void *_create)
{
@@ -411,6 +413,7 @@ void kthread_unpark(struct task_struct *
if (kthread)
__kthread_unpark(k, kthread);
}
+EXPORT_SYMBOL(kthread_unpark);
/**
* kthread_park - park a thread created by kthread_create().
@@ -441,6 +444,7 @@ int kthread_park(struct task_struct *k)
}
return ret;
}
+EXPORT_SYMBOL(kthread_park);
/**
* kthread_stop - stop a thread created by kthread_create().
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Date | 2015-07-09 10:10 +0200 |
| Message-ID | <pKf46-69s-41@gated-at.bofh.it> |
| In reply to | #1180351 |
On Wed, 8 Jul 2015, Jean Tourrilhes wrote: > The kthread park/unpark facility is not used in the kernel, so git grep kthread.*park tells a different story > one would assume that it's made for kernel modules. Certainly not. > This patch should definitely help most modules. And how exactly would this help modules? Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web