/* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com * Copyright (C) 2009 Lemote, Inc. * Author: Zhangjin Wu, wuzhangjin@gmail.com */ #include <linux/init.h> #include <linux/pm.h> #include <asm/idle.h> #include <asm/reboot.h> #include <loongson.h> #include <boot_param.h>
static inline void loongson_reboot(void) { #ifndef CONFIG_CPU_JUMP_WORKAROUNDS ((void (*)(void))ioremap_nocache(LOONGSON_BOOT_BASE, 4)) (); #else void (*func)(void); func = (void *)ioremap_nocache(LOONGSON_BOOT_BASE, 4); __asm__ __volatile__( " .set noat \n" " jr %[func] \n" " .set at \n" : /* No outputs */ : [func] "r" (func)); #endif }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 62 | 98.41% | 3 | 75.00% |
Ralf Bächle | 1 | 1.59% | 1 | 25.00% |
Total | 63 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Huacai Chen | 40 | 68.97% | 1 | 33.33% |
Wu Zhangjin | 18 | 31.03% | 2 | 66.67% |
Total | 58 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Huacai Chen | 40 | 74.07% | 1 | 25.00% |
Wu Zhangjin | 14 | 25.93% | 3 | 75.00% |
Total | 54 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 24 | 100.00% | 2 | 100.00% |
Total | 24 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 161 | 64.66% | 5 | 62.50% |
Huacai Chen | 83 | 33.33% | 1 | 12.50% |
Ralf Bächle | 5 | 2.01% | 2 | 25.00% |
Total | 249 | 100.00% | 8 | 100.00% |