lkml.org 
[lkml]   [2008]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched: make task_nice available to non-GPL modules
Date
The API is trivial, and so is the implementation.  Linux priorities are
exposed to the userspace, so nobody should claim that software aware of
Linux priorities is a derived work of the kernel.

The complementary function set_user_nice() is available to non-GPL
modules. If the module can set the priority, it should be able to read
it back.

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index dcd553c..6db6e0c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4422,7 +4422,7 @@ int task_nice(const struct task_struct *p)
{
return TASK_NICE(p);
}
-EXPORT_SYMBOL_GPL(task_nice);
+EXPORT_SYMBOL(task_nice);

/**
* idle_cpu - is a given cpu idle currently?

\
 
 \ /
  Last update: 2008-03-05 22:59    [W:0.449 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site