#ifndef __PERF_REGS_H #define __PERF_REGS_H #include #include struct regs_dump; struct sample_reg { const char *name; uint64_t mask; }; #define SMPL_REG(n, b) { .name = #n, .mask = 1ULL << (b) } #define SMPL_REG_END { .name = NULL } extern const struct sample_reg sample_reg_masks[]; #ifdef HAVE_PERF_REGS_SUPPORT #include int perf_reg_value(u64 *valp, struct regs_dump *regs, int id); #else #define PERF_REGS_MASK 0 #define PERF_REGS_MAX 0 static inline const char *perf_reg_name(int id __maybe_unused) { return NULL; } static inline int perf_reg_value(u64 *valp __maybe_unused, struct regs_dump *regs __maybe_unused, int id __maybe_unused) { return 0; } #endif /* HAVE_PERF_REGS_SUPPORT */ #endif /* __PERF_REGS_H */ ass='form'>
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
='/cgit.cgi/linux/net-next.git/diff/arch/mips?id=5db4992d8f040b8d8db0b86d42806e0c417f7ccf'>mips/mti-malta/malta-memory.c
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
Diffstat (limited to 'arch/mips/mti-malta/malta-memory.c')
right'>2017-02-15 10:34:18 +0100
commit5db4992d8f040b8d8db0b86d42806e0c417f7ccf (patch)
tree5b06e952af482d45f3ade64e77824662e34b7fa2 /arch/sparc/mm/highmem.c
parent370ebb0ef6255132373ed35d13e7b1d8d2eb7003 (diff)
usbnet: pegasus: Use net_device_stats from struct net_devicends-private-remove
Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'arch/sparc/mm/highmem.c')