cred-internals.h 559 B

123456789101112131415161718192021
  1. /* Internal credentials stuff
  2. *
  3. * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public Licence
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the Licence, or (at your option) any later version.
  10. */
  11. /*
  12. * user.c
  13. */
  14. static inline void sched_switch_user(struct task_struct *p)
  15. {
  16. #ifdef CONFIG_USER_SCHED
  17. sched_move_task(p);
  18. #endif /* CONFIG_USER_SCHED */
  19. }